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
Denis
a26e1e6e13
time: fix typo ( #7274 )
2020-12-11 19:30:34 +01:00
Takahiro Yaota
a2f7e0636d
time: -
operator overloading ( #7259 )
2020-12-11 06:54:23 +01:00
Enzo
b083f4014b
fmt: fix multiple things and format most of the compiler ( #6631 )
...
Format expressions inside string interpolation like the rest (it used to be a+b instead of a + b, not too sure why)
Fix formatting some match branches when there were only one statement inside (it was inlined)
Fix parsing and formatting some comments edge case on struct field init. You should check out this test because the result is a bit different from before. I personally find it more logical but I would understand if the former format was to stay
Fix formatting of void-returning function signature
2020-10-15 22:12:59 +02:00
Alexander Medvednikov
7da1afa140
all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests
2020-10-15 12:32:28 +02:00
spaceface777
b44620d065
time: use linux high-precision timers on Android as well ( #6476 )
2020-09-25 18:02:02 +03:00
Daniel Däschle
abc98c273c
parser: require assign on type alias ( #6477 )
2020-09-25 12:02:32 +02:00
Delyan Angelov
e2e683199d
time: do not panic on time.new_time({unix: 1608854400}).str()
2020-09-16 22:14:02 +03:00
Uwe Krüger
c3cdfa1c96
sync/channels: provide `try_push(), try_pop() as public methods ( #6101 )
2020-08-10 18:06:42 +02:00