v/vlib/time
Miccah d07975335d
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>
2021-12-19 19:32:42 +02:00
..
misc time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050) 2021-08-04 13:12:02 +03:00
Y2K38_test.v time: fix `time.parse_iso8601(2037-07-23)?.add_days(181).str() == "1901-12-13 17:31:44"` 2021-07-06 18:54:33 +03:00
chrono.c.v time: move C backend specific code into .c.v files (#11125) 2021-08-10 14:34:53 +03:00
chrono.v time: move C backend specific code into .c.v files (#11125) 2021-08-10 14:34:53 +03:00
duration_test.v time: add Duration.str() (#12897) 2021-12-19 19:32:42 +02:00
format.v log: avoid using string__plus memory leak (#11128) 2021-08-11 09:26:02 +03:00
operator.v time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050) 2021-08-04 13:12:02 +03:00
operator_test.v vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
parse.c.v toml: add date and time checks (#12427) 2021-11-11 07:27:41 +02:00
parse.js.v v.gen.js: fix method calls and other codegen parts, rand module compiles (#11205) 2021-08-18 11:33:37 +03:00
parse.v ci: fix broken js tests 2021-10-19 20:05:27 +03:00
parse_test.v toml: add date and time checks (#12427) 2021-11-11 07:27:41 +02:00
private_test.v time: v fmt (#7160) 2020-12-06 15:19:39 +01:00
stopwatch.v checker: require `params` attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
stopwatch_test.v parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
time.c.v time: add Duration.str() (#12897) 2021-12-19 19:32:42 +02:00
time.js.v js: codegen & vlib fixes, replace the Game of Life CLI example (#12272) 2021-10-22 22:03:19 +03:00
time.v time: add Duration.str() (#12897) 2021-12-19 19:32:42 +02:00
time_addition_test.v time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050) 2021-08-04 13:12:02 +03:00
time_darwin.c.v time: fix `./v -o vcross -os cross cmd/v` on macos 2021-09-06 19:50:16 +03:00
time_format_test.v time: extend date str formats (#9543) 2021-04-01 13:04:59 +03:00
time_js.js.v time: fix sys_mono_now for the JS backend (#12187) 2021-10-15 09:22:15 +03:00
time_linux.c.v time: complete doc (#8070) 2021-01-13 16:30:54 +02:00
time_nix.c.v time: use `&C.time_t` instead of `&time_t` in C fn declaration (#11232) 2021-08-18 17:05:43 +03:00
time_solaris.c.v time: fix V compilation for solaris 2021-07-24 11:17:54 +03:00
time_test.v time: implement `pub fn since(t Time) Duration` 2021-10-24 21:36:28 +03:00
time_windows.c.v time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050) 2021-08-04 13:12:02 +03:00
unix.v time: use i64 in unix() 2021-08-16 06:28:54 +03:00