Commit graph

46 commits

Author SHA1 Message Date
kbkpbot
57a45bc353
time: add .week_of_year() method for time.Time instances (#23838) 2025-03-02 10:04:59 +02:00
Hitalo Souza
d7d88b9f0f
log,time: improve performance for writing a line to a log, add Time.format_rfc3339_micro/0 (#22662) 2024-10-27 12:00:16 +02:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Martin Skou
62c69e8a31
docs: improve formatting in time.parse_format description (#22113) 2024-08-25 08:05:13 +03:00
Ivan Vatlin
c0bb9605c0
time: d,c,dd,ddd,dddd pattern support for parse_format() (#22003) 2024-08-09 13:27:15 +03:00
Hitalo Souza
e515a75b73
time: increase http_header_string performance (#21894) 2024-07-19 21:35:20 +03:00
Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Hitalo Souza
d5370bd220
time: microoptimise the Time formating methods (use custom number->string conversion, instead of string interpolation) (#20917) 2024-02-28 11:55:33 +02:00
David Legrand
38cf923537
time: add a .http_header_string() method on Time (#20861) 2024-02-18 14:45:37 +02:00
Hitalo Souza
62872c677f
json2: cleanup (#20347) 2024-01-12 22:48:28 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
shove
10df697d32
time: add 'i', 'ii' in custom_format() for 12-hours clock(0-12-1-11) (#19083) 2023-08-08 12:25:39 +03:00
Delyan Angelov
286d39706b
time: add a format_rfc3339_nano() method to time.Time 2023-08-08 08:35:05 +03:00
Delyan Angelov
b9a523cefd
time: store time with nanosecond resolution in time.Time, deprecate Time.microsecond, add utility methods and tests (#19062) 2023-08-05 23:41:23 +03:00
Turiiya
8e26ca3f5a
time: fix 'a' and 'A' in custom_format (#19060) 2023-08-05 13:58:16 +03:00
Turiiya
e5cd1724f9
time: fix 'h', 'hh' in custom_format for 12pm (#19058) 2023-08-05 07:28:12 +03:00
Turiiya
63867d4ce0
time: add missing custom_format token (#18880) 2023-07-17 10:40:27 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Petr Makhnev
864e1994b0
vlib/time: format table for custom_format() (#17428)
* vlib/time: format table for `custom_format()`

* small fix

* small fix
2023-02-27 21:48:05 +02:00
Delyan Angelov
ad24c22250
time: add more UTC/local time conversion functions, make Time.format_rfc3339 more stable 2022-12-11 13:34:01 +02:00
Delyan Angelov
94098eef79
time: use UTC time in Time.format_rfc3339, make test more robust 2022-12-11 10:36:29 +02:00
Delyan Angelov
2ecb892985
time: add Time.format_rfc3339() method 2022-12-11 10:23:05 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Delyan Angelov
5328dabad1
time: simplify some very commonly used t.format methods 2022-05-22 21:09:49 +03:00
Delyan Angelov
a7afb2d1eb
time: remove import math dependency, by implementing a simpler version of mceil 2022-05-21 02:04:17 +03:00
David 'Epper' Marshall
26b81d68b5
time: update doc comments (#14359) 2022-05-11 16:55:19 +03:00
David 'Epper' Marshall
91c1157810
time: relative update (#14240) 2022-05-01 10:47:05 +03:00
David 'Epper' Marshall
a2338dbb7c
docs: document more builtin functions/methods (#14229) 2022-04-30 12:31:23 +03:00
David 'Epper' Marshall
881d0c04f1
time: add custom formatter (#14202) 2022-04-29 15:57:08 +03:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
wilesun
18be9e52be
log: avoid using string__plus memory leak (#11128) 2021-08-11 09:26:02 +03:00
AAAA
043f6420f7
time: extend date str formats (#9543) 2021-04-01 13:04:59 +03:00
yuyi
1be7cc14d3
checker: check duplicate of a const name (#8396) 2021-01-28 18:34:55 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Takahiro Yaota
0c50f0c9dc
time: v fmt (#7160) 2020-12-06 15:19:39 +01:00
Delyan Angelov
e2e683199d time: do not panic on time.new_time({unix: 1608854400}).str() 2020-09-16 22:14:02 +03:00
Alexander Medvednikov
03327e5161 time: minor fixes + vfmt 2020-09-10 13:26:01 +02:00
Delyan Angelov
8f23accc4e time: add .format_ss_milli and .format_ss_micro methods 2020-07-21 11:58:33 +03:00
Delyan Angelov
78e1127d99
cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
Louis Schmieder
616b07204d
vweb: add cookies with expire date 2020-06-29 21:14:36 +02:00
pancake
b5bf0eeac5
time: add .no_delimiter format option 2020-05-08 21:23:26 +03:00
Enzo Baldisserri
3e68e429b6
checker: avert if else is unnecessary 2020-04-25 21:51:44 +02:00
Alexander Medvednikov
4b36098e07 cgen: 1 error left 2020-03-20 20:35:00 +01:00
Alexey
65744207fc
time: reorganize module 2020-02-06 14:19:44 +01:00