Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times ( #21293 )
2024-04-17 00:33:37 +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
Hitalo Souza
a9c10428d2
time: rename identifiers and parameter names ( #20913 )
2024-02-27 03:09:24 +02:00
Alexander Medvednikov
f09826e928
all: unwrap const() blocks
2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax
2023-11-15 16:16:01 +11:00
Turiiya
9051ac8921
all: fix typos ( #19634 )
2023-10-23 21:21:15 +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
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
Alexander Medvednikov
5355c67ebe
vweb: document live reload
2023-07-08 19:29:27 +03:00
acimnotes
790afbce94
time: add new method year_day and the tests for it ( #18107 )
2023-05-12 09:27:20 +03:00
yuyi
467a1b4435
fmt: remove redundant parenthesis in the complex infix expr ( #17873 )
2023-04-04 13:47:48 +03:00
yuyi
17000ef7b6
checker: check option fn returning error ( fix #17423 ) ( #17438 )
2023-03-02 15:49:50 +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
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
David 'Epper' Marshall
c28051020a
time: fix calculate_date_from_offset ( #14399 )
2022-05-15 10:55:24 +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
881d0c04f1
time: add custom formatter ( #14202 )
2022-04-29 15:57:08 +03:00
Vincenzo Palazzo
02c80bd445
time: fix repetitive time.now().local().local().local() offsetting the time further and further ( #13861 )
2022-04-01 00:11:17 +03:00
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
Delyan Angelov
49ebba535e
time: implement pub fn since(t Time) Duration
2021-10-24 21:36:28 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init ( fix #11448 ) ( #11562 )
2021-09-21 16:20:09 +03:00
playX
70124d2d23
js: time module: implement utc,now,local ( #11138 )
2021-08-11 09:22:53 +03:00
playX
8d6903a65a
time: move C backend specific code into .c.v files ( #11125 )
2021-08-10 14:34:53 +03:00
Delyan Angelov
efa8dcf4d2
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
shadow
66bc8bc0cb
vlib: remove many deprecated functions ( #10972 )
2021-07-28 09:22:19 +03:00
Delyan Angelov
55eeb701a9
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
Uwe Krüger
72358833e0
time: use Duration(C.INT64_MAX)
as infinite ( #10539 )
2021-06-22 12:17:44 +03:00
Enzo
df2b688337
checker: cleanup type alias pascal case check ( #10217 )
2021-05-27 22:40:32 +03:00
Delyan Angelov
cc8948efcf
time: fix compilation on macos
2021-04-05 15:31:29 +03:00
AAAA
043f6420f7
time: extend date str formats ( #9543 )
2021-04-01 13:04:59 +03:00
Alexander Medvednikov
bb5958991c
checker: warn about automatic (de)referencing; freetype: compilation flag fixes
2021-03-26 11:42:51 +03:00
Alexander Medvednikov
1590783f02
Revert "time: use .c.v for files that use C. functions ( #9447 )"
...
This reverts commit 5d8b9b0151
.
2021-03-25 07:35:34 +03:00
zakuro
5d8b9b0151
time: use .c.v for files that use C. functions ( #9447 )
2021-03-24 20:15:17 +02:00
Lukas Neubert
1b572f75e8
fmt: minor array wrap improvement ( #9420 )
2021-03-22 23:06:12 +01:00
Alexander Medvednikov
3a2d696fac
time: time.wait() => time.sleep()
2021-02-27 20:41:06 +03:00
zakuro
ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) ( #8853 )
2021-02-21 17:05:03 +02:00
zakuro
e30e794884
checker: add check for using a private const in another module ( #8501 )
2021-02-03 10:17:13 +02:00
Lukas Neubert
d660f2cc6f
fmt: insert newline after last HashStmt ( #8482 )
2021-02-01 14:50:41 +01:00
Delyan Angelov
728344ff65
ci: fix v test-cleancode
2021-01-25 12:55:01 +02:00
Alexander Medvednikov
8bcb6c10cc
checker: remove duplicate const error; fmt: force full path to consts
2021-01-24 10:01:13 +01:00
Daniel Däschle
dbf84520f1
all: update assoc syntax ( #8274 )
2021-01-22 23:24:48 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 ( #8029 )
2021-01-18 13:20:06 +01:00
crthpl
70ad49e186
time: complete doc ( #8070 )
2021-01-13 16:30:54 +02:00
Alexander Medvednikov
13f16b4a82
time: rename to_local_time() to local(); time.offset()
2020-12-26 02:10:47 +01:00
zakuro
c639dd03d0
time: move - operator to operator.v ( #7433 )
2020-12-21 09:28:00 +01:00
zakuro
c69947160b
time: change type of duration constants from i64 to Duration ( #7435 )
2020-12-21 09:27:06 +01:00
Takahiro Yaota
eb48208599
time: Time.add ( #7262 )
2020-12-12 04:22:30 +01:00