v/vlib/time
penguindark 7d52d612ce
rand: add rand.ulid() (#5979)
* removed debug println

* added newline to the end of the file

* time: add .unix_time_milli() method; rand,time: add tests

* rand: add more ulid tests; move tests to a separate file random_identifiers_test.v

* run vfmt over vlib/rand/random_identifiers_test.v

* speed up time.unix_time_milli

* simplify and speedup time.unix_time/0 and time.new_time/1

* update comment about rand.ulid()

* fix terminating 0 off by 1 issue in rand.ulid()

* optimize time.new_time()

* restore the master version of vlib/time/parse.v

* make test_unix_time more robust

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2020-07-26 13:10:56 +03:00
..
misc rand: reorganize: phase 2 2020-06-09 15:06:07 +02:00
format.v time: add .format_ss_milli and .format_ss_micro methods 2020-07-21 11:58:33 +03:00
format_test.v vweb: add cookies with expire date 2020-06-29 21:14:36 +02:00
operator.v time: fix iso8601 parser and utc time 2020-06-10 11:14:55 +02:00
operator_test.v time: add microsecond precision to Time struct 2020-06-07 16:19:09 +03:00
parse.v checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
parse_test.v time: fix iso8601 parser and utc time 2020-06-10 11:14:55 +02:00
private_test.v time: add microsecond precision to Time struct 2020-06-07 16:19:09 +03:00
stopwatch.v stopwatch: auto_start option, make pause cumulative 2020-05-30 10:20:54 +03:00
stopwatch_test.v tests: fix some tests, that failed due to the stricter immutable checks 2020-06-01 18:24:38 +03:00
time.v rand: add rand.ulid() (#5979) 2020-07-26 13:10:56 +03:00
time_darwin.c.v time: fix iso8601 parser and utc time 2020-06-10 11:14:55 +02:00
time_linux.c.v time: fix iso8601 parser and utc time 2020-06-10 11:14:55 +02:00
time_nix.c.v sync: add semaphores (#5831) 2020-07-15 10:22:33 +02:00
time_solaris.c.v time: fix iso8601 parser and utc time 2020-06-10 11:14:55 +02:00
time_test.v rand: add rand.ulid() (#5979) 2020-07-26 13:10:56 +03:00
time_windows.c.v tcc: support tcc on Windows 2020-06-14 23:15:12 +02:00
unix.v time: add microsecond precision to Time struct 2020-06-07 16:19:09 +03:00