334 Commits

Author SHA1 Message Date
Delyan Angelov
c1db6006bd
time: fix more panics in the supported specifiers in Time.custom_format/1 (#24988) 2025-07-27 20:34:11 +03:00
Delyan Angelov
a08ea74167
time: fix timezone test on windows 2025-07-27 15:56:36 +03:00
kbkpbot
dc2a7b2b7c
time: fix custom_format panic (fix #24977) (#24987) 2025-07-27 15:46:56 +03:00
Delyan Angelov
6fb46cc30f
fmt: fix eating the attribute from @[deprecated] pub type Alias = int (fix #24968), workaround -usecache bug (#24969) 2025-07-25 10:57:52 +03:00
Delyan Angelov
ae0937c83e
docs: check vlib/time too in the report-missing-dots-in-doc-comments job 2025-07-21 18:43:40 +03:00
Jose Mendoza
a5f400ee77
parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
Delyan Angelov
b528395039
builtin,markused,pref,cgen: improve markused for small programs 2025-03-18 21:05:04 +02:00
Noa Santo
a74f3171db
time: add documentation for remaining time-related functions and ISO 8601 parsing (#23867) 2025-03-05 14:11:19 +02:00
kbkpbot
57a45bc353
time: add .week_of_year() method for time.Time instances (#23838) 2025-03-02 10:04:59 +02:00
Delyan Angelov
e3d8cdc357
time: improve the robustness of time_test.c.v (check if the diff is within ±1 second of the current timezone difference) 2025-02-12 15:17:51 +02:00
Delyan Angelov
8e29ff7214
time: reduce chances of failures on the CI, by time_test.c.v; make the failure diagnostic easier 2025-02-12 14:55:10 +02:00
Emma
6b92f8fada
all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
Alexander Medvednikov
6b3724df3a checker: do not allow auto reference of voidptr params 2025-01-13 19:01:43 +03:00
Delyan Angelov
153b7f00df
time: add module helpers unix_milli/1, unix_micro/1, unix_nano/1 and tests for them (#22997) 2024-11-28 12:47:05 +02:00
Delyan Angelov
5bba92a65a
vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +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
Hitalo Souza
c55a75f412
breaking,time: rewrite parse_rfc3339/1 to improve performance, reject partial timestamps, that miss date info like 22:47:08Z (#22585) 2024-10-21 11:24:37 +03:00
Felipe Pena
5e253e7923
time: fix C.clock_gettime return type (fix #8843) (#22551) 2024-10-17 20:57:59 +03: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
Martin Skou
f435e9aaf3
time: update parse_format comment description in parse.c.v (#22104) 2024-08-23 14:33:48 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +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
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Turiiya
dfc0c91295
checker: turn warnings for private fields into errors (#21296) 2024-06-09 10:19:52 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Delyan Angelov
fc45c0a55b time: make C._FILETIME and C.tm fields pub mut 2024-05-21 18:54:06 +03:00
Henrik Holst
4cb5949d14
time: fix the string representation of a negative Duration (#21407) 2024-05-03 17:51:42 +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
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Turiiya
95426d53f0
time: cleanup module (#21217) 2024-04-09 14:05:14 +03:00
Turiiya
ca839b6e43
time: extract Duration related code into duration.v (#21229) 2024-04-09 06:40:46 +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
Hitalo Souza
a9c10428d2
time: rename identifiers and parameter names (#20913) 2024-02-27 03:09:24 +02:00
Hitalo Souza
8c9003fbd3
time: add a tm_gmtoff field to C.tm (a BSD and GNU extension) (#20907) 2024-02-26 11:49:12 +02:00
David Legrand
38cf923537
time: add a .http_header_string() method on Time (#20861) 2024-02-18 14:45:37 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +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
Delyan Angelov
bb4c80211b
time: fix off by 1 error in must_be_valid_three_letter_month 2023-11-30 14:22:55 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
JalonSolov
6cc51f254f
sync,szip,term,time,x.ttf: prepare for making -W impure-v the default (#19929) 2023-11-19 18:33:07 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Delyan Angelov
f54f156d25 clipboard: fix v -cstrict -cc gcc vlib/clipboard/clipboard_test.v 2023-10-15 21:21:29 +03:00
Alexander Medvednikov
82a3e67d3f time: use C.BOOL again on Windows 2023-10-14 22:21:19 +03:00