Commit graph

309 commits

Author SHA1 Message Date
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
Alexander Medvednikov
8f76a062dd checker: remove time_t hack now that C aliases are supported 2023-10-14 18:50:15 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
Ivan Vatlin
bea12e2623
time: add MMM in the doc comment for parse_format() (#19299) 2023-09-08 07:22:31 +03:00
Ivan Vatlin
c790afabdc
time: add MMM support for parse_format() (#19284) 2023-09-06 18:46:57 +03:00
Turiiya
80db36496b
time: check if a day is a valid day of its month (#19232) 2023-08-29 22:45:21 +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
Delyan Angelov
2cd5b8a86d
time: reduce the diff for v run cmd/tools/check_os_api_parity time 2023-07-31 11:02:10 +03:00
Delyan Angelov
44ed42ce06
time: remove deprecated time.days_from_civil/1 2023-07-25 11:20:41 +03:00
yuyi
e1758bc0c5
cgen: fix infix expr with number overflow (fix #18905) (#18936) 2023-07-23 13:18:22 +03:00
Turiiya
ac0ae1966a
time: update doc comments (#18947) 2023-07-22 21:30:36 +03:00
werkzeug
a3449098a9
time: fix losing of the .is_local value after adding duration (#18938) 2023-07-22 07:01:11 +03:00
Turiiya
4f629cd883
time: fix hour 0 parsing, remove unused function (#18897) 2023-07-18 17:28:40 +03:00
Turiiya
bf98f7c9ee
time: fix parse_format with YY (#18887) 2023-07-18 02:05:49 +03:00
Turiiya
2eea59c4cc
time: fix and cleanup int validity checks (#18885) 2023-07-17 22:24:52 +03:00
Turiiya
63867d4ce0
time: add missing custom_format token (#18880) 2023-07-17 10:40:27 +03:00
Casper Kuethe
a43064af07
picoev, picohttparser: reimplement in V (#18506) 2023-07-12 09:40:16 +03:00
Alexander Medvednikov
5355c67ebe vweb: document live reload 2023-07-08 19:29:27 +03:00
Delyan Angelov
4c9c515f8b
parser: remove hardcoded check for function calls for C.stat, C.sigaction, etc (#18535) 2023-06-24 08:03:12 +03:00
Delyan Angelov
2c7643661e
time: small cleanup of parse_iso8601 comments, make the C.strftime declaratione forwards compatible 2023-06-24 08:01:57 +03:00
squidink7
5006ffb304
time, x.json2: improve iso8601 time decoding (#18496) 2023-06-21 12:34:50 +03:00
sandbankdisperser
e97aff8742
time: add more detailed error descriptions, add custom format parsing with time.parse_format (#18257) 2023-06-06 18:43:10 +03:00