Skip to content
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

[Feature Request]: Add support for timeDelta.totalNanoseconds to the Time module #26820

Open
lydia-duncan opened this issue Mar 3, 2025 · 2 comments

Comments

@lydia-duncan
Copy link
Member

Summary of Feature

Description:
#26798 will add a totalMicroseconds method to go alongside the already-existing totalSeconds method on the timeDelta class. There's probably some use for totalNanoseconds as well, though note that nanoseconds are smaller than microseconds and microseconds are the smallest unit we store on the timeDelta type today.

Is this issue currently blocking your progress?
no, it just came up as a similarly missing feature

Code Sample

use Time;

var a = new timeDelta(microseconds=10);
writeln(a.totalNanoseconds()); // Should print 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants