Skip to content

feat(calc): add current_timestamp utility fn #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented Jul 2, 2025

No reason not to have this, useful for use also outside the calculator itself.

No reason not to have this, useful for use also outside the calculator itself.
Copy link
Member Author

Evalir commented Jul 2, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Evalir Evalir requested a review from prestwich July 2, 2025 13:04
}

/// The current timestamp in seconds.
pub fn current_timestamp(&self) -> u64 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't use self in the function body, shouldn't be a method. also wouldn't use the Self type, so shouldn't be an associated function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants