Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Timestamp type #4

Merged
merged 3 commits into from
May 29, 2023
Merged

Support Timestamp type #4

merged 3 commits into from
May 29, 2023

Conversation

clarkmcc
Copy link
Owner

@clarkmcc clarkmcc commented May 29, 2023

// Parses RFC3339 timestamps into a timestamp type
timestamp('2023-05-28T00:00:00Z')

// Comparison
timestamp('2023-05-29T00:00:00Z') > timestamp('2023-05-28T00:00:00Z') == true

// Subtracting durations
timestamp('2023-05-29T00:00:00Z') - duration('24h') == timestamp('2023-05-28T00:00:00Z')

// Subtracting dates
timestamp('2023-05-29T00:00:00Z') - timestamp('2023-05-28T00:00:00Z') == duration('24h')

// Adding durations
timestamp('2023-05-28T00:00:00Z') + duration('24h') == timestamp('2023-05-29T00:00:00Z')

@clarkmcc clarkmcc changed the title Timestamps Support Timestamp type May 29, 2023
@clarkmcc clarkmcc merged commit f83f50e into master May 29, 2023
1 check passed
@clarkmcc clarkmcc deleted the timestamps branch May 29, 2023 17:15
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.

None yet

1 participant