projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34df1d
)
fixed: ergonomics with timestamps
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 16 Jan 2024 20:09:46 +0000
(14:09 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 16 Jan 2024 20:09:46 +0000
(14:09 -0600)
core/time/time.onyx
patch
|
blob
|
history
diff --git
a/core/time/time.onyx
b/core/time/time.onyx
index e9298ecd375094525d5cfb718619a69a3632ff45..2fc8db7565788a49705730a79b21e39878b15e2b 100644
(file)
--- a/
core/time/time.onyx
+++ b/
core/time/time.onyx
@@
-442,7
+442,7
@@
time_to_tm :: (ts: i64, tm: &Timestamp) {
}
#local
-tm_to_time :: (tm:
&
Timestamp) -> i64 {
+tm_to_time :: (tm: Timestamp) -> i64 {
y := cast(i64, tm.year + 1900);
m := cast(i64, tm.mon + 1);
if m <= 2 {