Skip to content

feat(datetime): adding some tests#64

Open
SuperFola wants to merge 6 commits into
masterfrom
datetime-and-more
Open

feat(datetime): adding some tests#64
SuperFola wants to merge 6 commits into
masterfrom
datetime-and-more

Conversation

@SuperFola
Copy link
Copy Markdown
Member

@SuperFola SuperFola commented May 30, 2026

Closes #40

Comment thread Datetime.ark
# @param _tz String, time zone name
# @author https://github.com/SuperFola
(let timezoneOffset (fun (_tz) {
(let timezoneOffset (dict:get timezoneOffsets _tz))
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to rename the var to avoid shadowing here

Comment thread Datetime.ark
# =end
# @author https://github.com/SuperFola
(let makeUTCTimestamp (fun (_year (mut _month) _day _hour _minute _second _millisecond _tz _dst?) {
# _month is between 1 and 12, this algorithm needs it between 0 and 11
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add asserts for month, year, day, hour minutes and seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Datetime.ark

1 participant