Skip to content

Instantly share code, notes, and snippets.

@dtanner
Created November 9, 2022 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtanner/e8cac232b7f676f7e16965057be28213 to your computer and use it in GitHub Desktop.
Save dtanner/e8cac232b7f676f7e16965057be28213 to your computer and use it in GitHub Desktop.
Date/Time Naming Conventions

date/time naming conventions

Type Description Recommended Suffix Sample Name Sample Printed Value
Instant A date-time without time-zone, fixed to UTC timestamp created_timestamp 1970-01-01T00:00:00Z
ZonedDateTime A date-time with time-zone specified date_time start_date_time 1970-01-01T00:00:00-06:00
LocalDate A date without time-zone date birth_date 2000-01-29
LocalTime A time without time-zone time start_time 08:34 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment