mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
time: add Duration.str() (#12897)
* time: add str() method to Duration * add Duration.str tests, move time.infinite to time.v, to be visible to the JS backend Co-authored-by: Delyan Angelov <delian66@gmail.com>
This commit is contained in:
parent
840a92c14e
commit
d07975335d
3 changed files with 83 additions and 13 deletions
|
@ -119,7 +119,3 @@ fn convert_ctime(t C.tm, microsecond int) Time {
|
|||
unix: make_unix_time(t)
|
||||
}
|
||||
}
|
||||
|
||||
pub const (
|
||||
infinite = Duration(C.INT64_MAX)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue