Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 60 additions & 6 deletions doc/commands/system.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@

# Time, Date, Alarms and System Commands

## DateMenu

Activated from the [Time](#TimeMenu) menu.

Show a softkey menu for date-related commands, including:

* `Date`
Expand All @@ -14,7 +17,9 @@ Show a softkey menu for date-related commands, including:

## TimeMenu

Show a softkey menu for time-related commands:
Activated by the 🟦 _V_ (_TIME_) key.

Show a softkey menu for time-related commands, including:

* `Time`
* `ToHMS`
Expand All @@ -28,14 +33,63 @@ Show a softkey menu for time-related commands:
* `TimedEval`
* `SetTime`

## Time, Date related flags

## Date format
* `HideDate` / `ShowDate`
* `HideTime` / `ShowTime`
* `ShowSeconds` / `HideSeconds`
* `Time12H` / `Time24H`
* `HideMonthName` / `ShowMonthName`
* `MonthBeforeDay` / `DayBeforeMonth`
* `YearFirst` / `YearLast`
* `TwoDigitYear` / `FourDigitYear`
* `HideDayOfWeek` / `ShowDayOfWeek`
* `BCECEyearNumbering` / `AstronomicalYearNumbering`

The date format is `YYYYMMDD`, with an optional fractional part defining the
time, as in `YYYYMMDD.HHMMSS`.
## Time, Date related settings

* `DateSlash` / `DateDash` / `DateDot` / `DateSpace`

## BCECEyearNumbering

Activate the B(efore) C(ommon) E(ra) / C(ommon) E(ra) suffix of the year in the display of a date on the stack.
Activate the related year numbering which jumps from 1 BCE to 1 CE. So negative years are shifted.
See: [Proleptic Gregorian calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar)

## AstronomicalYearNumbering

Activate the Astronomical year numbering. This uses a uniform timeline including a year = 0.
Display negative years on the stack with a minus sign.
See: [Astronomical year numbering](https://en.wikipedia.org/wiki/Astronomical_year_numbering)

## Date entry / edit format

A whole number with a `_date` unit attached is interpreted as a date according to the customary format `YYYYMMDD`.
The year need not be a 4 digit number.
It can a smaller, bigger, zero, even a negative number and leading zeros can be ommitted
(as such it need not fit the `YYYY` format).
In case of a negative number only the year is treated as such.
Months and days, even in a negative year, run from low (positive numbers) to high.

Note: the date format is intentionally different from the format on the HP-48.

## Date display format

By default a Date is displayed on the stack like `Sun 30/Nov/2025`.
The format can be adjusted by changing the [Time, Date related flags](#time-date-related-flags) or
[Time, Date related settings](#time-date-related-settings)

## Date+Time entry / edit format

A real number with a `_date` unit attached is interpreted as a Date + Time
according to the format `YYYYMMDD.HHMMSS`.

## Date+Time display format

By default a Date+Time is displayed on the stack like `Sun 30/Nov/2025, 16:43:10`.
The format can be adjusted by changing the [Time, Date related flags](#time-date-related-flags) or / and
[Time, Date related settings](#time-date-related-settings).

## Time format

The time format is `HH.MMSS` with optional hundredths of a second as
Expand Down Expand Up @@ -204,7 +258,7 @@ This command ignores that gap, so the Julian day number given by this command fo
To compute the Julian Day Number for the first day of the millenium:
Comment thread
evgaster marked this conversation as resolved.
```rpl
20000101 JDN
@ Expecting 2 451 545
@ Expecting 2 451 544 ¹/₂
Comment thread
evgaster marked this conversation as resolved.
```

## Datefromjuliandaynumber
Expand All @@ -216,7 +270,7 @@ It is the opposite of the `JDN` command.

```rpl
2451545 JDN→
@ Expecting Sat 1/Jan/2000
@ Expecting Sat 1/Jan/2000, 12:00:00
```

## ACK
Expand Down
Loading