→DATE
Synopsis
Set current system date
Description
The →DATE
command sets the date on the calculator. The date is expressed by a real number and its format depends on the state of flag -42:
- if the flag -42 is set the date is expressed as DD.MMYYYY;
- if the flag -42 is cleared the date is expressed as MM.DDYYYY.
where:
- DD is the day;
- MM is the month;
- YYYY is the year.
If YYYY is not supplied, the current specification for the year is used. The range of allowable dates is January 1, 2000 to December 31, 2090. Inputs between January 1, 1991 and December 31, 1999 are silently rejected by →DATE
; no error is reported and the system date is left unchanged.
Compatibility
→DATE
is fully equivalent to its userRPL counterpart.
Usage
Input
« -42 SF @ Set date to european format 24.122021 @ Ho Ho Ho! →DATE »
Output
4: 3: 2: 1: …………………………………………………………………………………………………………
Related Commands
Command | Short Description | |
---|---|---|
→DATE | Set current system date in MM.DDYYYY | |
DATE+ | Add days to a date in MM.DDYYYY | |
→TIME | Set current time as HH.MMSS | |
→HMS | Convert decimal time to HH.MMSS | |
HMS→ | Convert time in HH.MMSS to decimal | |
HMS+ | Add time in HH.MMSS format | |
HMS- | Subtract time in HH.MMSS format | |
TICKS | Return system clock in microseconds | CHANGED |
TEVAL | Perform EVAL and measure elapsed time | CHANGED |
DATE | Current system date as MM.DDYYYY | |
DDAYS | Number of days between dates in MM.DDYYYY | |
TIME | Current time in HH.MMSS | |
TSTR | ||
ACK | Acknowledge oldest alarm (dismiss) | |
ACKALL | Acknowledge (dismiss) all alarms | |
RCLALARM | Recall specified alarm | |
STOALARM | Create a new alarm | |
DELALARM | Delete an existing alarm | |
FINDALARM | Get first alarm due after the given time | |
VERSION | Get newRPL version string | |
MEM | Get available memory in bytes | |
BYTES | Size of an object in bytes and CRC32 | CHANGED |
PEEK | Low-level read memory address | CHANGED |
POKE | Low level write to memory address | CHANGED |
NEWOB | Make a new copy of the given object | |
GARBAGE | Force a garbage collection | NEW |
FWUPD | ||
OFF | Turn calculator off programmatically |