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

Rename the _timestamp magic parameters to _now #871

Closed
simonw opened this issue Jun 28, 2020 · 1 comment
Closed

Rename the _timestamp magic parameters to _now #871

simonw opened this issue Jun 28, 2020 · 1 comment
Labels

Comments

@simonw
Copy link
Owner

simonw commented Jun 28, 2020

I like the shorter name better. Follows on from #842.

@simonw simonw added the small label Jun 28, 2020
@simonw simonw added this to the Datasette 0.45 milestone Jun 28, 2020
@simonw
Copy link
Owner Author

simonw commented Jun 28, 2020

Currently:

_timestamp_epoch

The number of seconds since the Unix epoch.

_timestamp_date_utc

The date in UTC, e.g. 2020-06-01

_timestamp_datetime_utc

The ISO 8601 datetime in UTC, e.g. 2020-06-24T18:01:07Z

I'm going to rename them to:

  • _now_epoch
  • _now_date_utc
  • _now_datetime_utc

@simonw simonw closed this as completed in 0991ea7 Jun 28, 2020
simonw added a commit that referenced this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant