Date n Timestamp supported by YAML
standard Date n Time
- date: 2024-05-05
- YYYY-MM-DD
- any change in format will treat that value as string
Full Data & Time Format - canonical format
- timestamp: 2024-05-05T11:20:35Z
- YYYY-MM-DDHMM:MM:SSZ (canonical format)
- T represent Time
- Z represent UTC time. UTC time belongs to a time zone which is plus zero.
- any change in format will treat that value as string
Full Data & Time Format - ISO 8601 format
- timestamp_with_timezone:
- 2024-05-05T11:20:35:02:00
- spacedtimestamp_with_timezone
- 2024-05-05 11:20:35 -5
- noTimeZone
- 2024-05-05 11:20:35
- Inside these, the format of defining the date and time everything is going to be same. But instead of mentioning Z, we're going to directly mention that time zone offset value.
- YYYY-MM-DDHMM:MM:SS
- Instead of mentioning Z, we're going to directly mention that time zone offset value. For example, if you are looking to define India time zone, then we need to mention zero 530 which is the India time zone.