Skip to content

Help - addiing time #1162

Answered by data-man
ghost asked this question in Q&A
Discussion options

You must be logged in to vote
a = a.add_seconds(1);

But there is a bug in std:

fn Time Time.add_seconds(time, long seconds) => time + (Time)(seconds * (long)MS);

->

fn Time Time.add_seconds(time, long seconds) => time + (Time)(seconds * (long)SEC);

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants