Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1db5851
init
MaxGraey Apr 14, 2021
657437d
simplify
MaxGraey Apr 14, 2021
1dfbe7f
refactor more
MaxGraey Apr 14, 2021
916f674
precalc and cache UTC date's values
MaxGraey Apr 14, 2021
e6fc2a6
refactor + more tests
MaxGraey Apr 14, 2021
795d014
more tests
MaxGraey Apr 14, 2021
cfa431b
more checks
MaxGraey Apr 14, 2021
264e666
fixes (WIP)
MaxGraey Apr 14, 2021
4715bc7
skip add guards
MaxGraey Apr 14, 2021
0cdc388
typo
MaxGraey Apr 14, 2021
b6a4ed6
more fixes and tests
MaxGraey Apr 14, 2021
00c0758
more
MaxGraey Apr 15, 2021
28ec3ec
more
MaxGraey Apr 15, 2021
6cf10c7
partially fix (wip)
MaxGraey Apr 15, 2021
e3b788d
more
MaxGraey Apr 15, 2021
c578d02
fixes done!
MaxGraey Apr 15, 2021
470d966
more fixes for toISOString
MaxGraey Apr 15, 2021
5a91cfe
fix guard check
MaxGraey Apr 15, 2021
2f2a0f4
minor opt toISOString
MaxGraey Apr 15, 2021
10ea880
more
MaxGraey Apr 15, 2021
028a67f
remove boundaries
MaxGraey Apr 15, 2021
ab9f9ac
opt floorMod for positive values
MaxGraey Apr 15, 2021
994d6b8
add guard for Date.UTC
MaxGraey Apr 15, 2021
cbf4579
remove inline from invalidDate
MaxGraey Apr 15, 2021
b53d9c6
use unsigned types for some ymdFromEpochDays and daysSinceEpoch ops
MaxGraey Apr 15, 2021
0c8aa0c
more parser fixes
MaxGraey Apr 15, 2021
e74c915
refactor
MaxGraey Apr 15, 2021
36ab8ba
more parser fixes
MaxGraey Apr 15, 2021
07b1b58
wip
MaxGraey Apr 15, 2021
9d8fc45
refactor
MaxGraey Apr 15, 2021
0d22062
fixes
MaxGraey Apr 15, 2021
56ecf2b
add Date.parse class method
MaxGraey Apr 15, 2021
b2c52c6
comment
MaxGraey Apr 15, 2021
ea5c3c2
Merge branch 'master' into date-refactor
MaxGraey Apr 15, 2021
171922f
Merge branch 'master' into date-refactor
MaxGraey Apr 17, 2021
3df0ef5
update fixtures
MaxGraey Apr 17, 2021
4f9142b
Merge branch 'master' into date-refactor
MaxGraey Apr 17, 2021
eb29f2d
more tests
MaxGraey Apr 18, 2021
acb3176
more special tests
MaxGraey Apr 18, 2021
fc58777
fixme later
MaxGraey Apr 18, 2021
bf82286
Merge branch 'master' into date-refactor
MaxGraey Apr 20, 2021
9cbb950
typo in comment
MaxGraey Apr 21, 2021
1bf570b
force ci
MaxGraey Apr 23, 2021
74a225c
works?
MaxGraey Apr 24, 2021
c57c91f
upd fixtures
MaxGraey Apr 24, 2021
99cf242
add getUTCDay
MaxGraey Apr 25, 2021
e23479a
remove export
MaxGraey Apr 25, 2021
ccc731b
fix
MaxGraey Apr 25, 2021
1db25ee
opt floorMod
MaxGraey Apr 25, 2021
18fdc7d
refactor dayOfWeek
MaxGraey Apr 25, 2021
2134f60
floorMod -> euclidRem
MaxGraey Apr 25, 2021
a7c86b6
Merge branch 'master' into date-refactor
MaxGraey Apr 25, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
MaxGraey committed Apr 15, 2021
commit 0d22062d78e51354cdda02779fa610af7fc24ae3
2 changes: 0 additions & 2 deletions std/assembly/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export class Date {
sec = I32.parseInt(secAndMs);
}
}
trace("", 4, hour, min, sec, ms);
}
// parse the YYYY-MM-DD component
var parts = dateString.split("-");
Expand All @@ -82,7 +81,6 @@ export class Date {
day = I32.parseInt(parts[2]);
}
}
trace("", 3, year, month, day);
return new Date(epochMillis(year, month, day, hour, min, sec, ms));
}

Expand Down
Loading