Separate date-time and timestamp data types #28

Open
opened 2026-01-26 14:18:01 +00:00 by scossu · 0 comments
Owner

Currently, system-generated values for properties with a datetime type are entered as integer values (UNIX epoch, GMT). This is convenient for quick comparisons and can be easily converted to any date-time format.

However, this format is not convenient to use for user-provided data, and a different type should be used.

The datetime type should be used for user-provided dates and times and should be entered in the ISO8601 format, in UTC time zone: "%Y-%m-%dT%H:%M:%S"

The type for current system-generated numeric timestamps should be renamed timestamp.

Currently, system-generated values for properties with a `datetime` type are entered as integer values (UNIX epoch, GMT). This is convenient for quick comparisons and can be easily converted to any date-time format. However, this format is not convenient to use for user-provided data, and a different type should be used. The `datetime` type should be used for user-provided dates and times and should be entered in the ISO8601 format, in UTC time zone: `"%Y-%m-%dT%H:%M:%S"` The type for current system-generated numeric timestamps should be renamed `timestamp`.
scossu added this to the v1.0.0 milestone 2026-01-26 14:18:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
scossu/pocket_archive#28
No description provided.