get_datetime_info
Inspect any date-time to get ISO format, timezone, UTC offset, DST, Unix time, weekday, Japanese era, day-of-year, ISO week, quarter, leap year, days in month, and days/seconds until a reference date.
Instructions
Get details of a date-time (default: now): ISO date-time, timezone, UTC offset, daylight saving time, Unix time, weekday in English and Japanese, Japanese era (wareki), day of year, ISO week, quarter, leap year, days in the month, and the difference from a reference date-time (default: now) in days and seconds, e.g. how many days until a date. Accepted forms: '2024-12-10', '2024-12-10 14:30', '2024-12-10T14:30:00+09:00', '2024/12/10', '2024年12月10日 14時30分', Japanese era such as '令和6年12月10日' or 'R6.12.10', and a time only such as '14:30' (today).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime | No | Date-time to inspect. Omit for now. | |
| timezone | No | IANA timezone for reading and showing the date-times. Omit for local. | |
| reference | No | Date-time to compare with. Omit to compare with now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||