Skip to main content

IAR Embedded Workbench for RISC-V 3.40

DATE Current time/date

In this section:
Precedence

2

Description

DATE gets the time when the current assembly began.

The DATE operator takes an absolute argument (expression) and returns:

DATE 1

Current second (0–59).

DATE 2

Current minute (0–59).

DATE 3

Current hour (0–23).

DATE 4

Current day (1–31).

DATE 5

Current month (1–12).

DATE 6

Current year MOD 100 (1998 –>98, 2000 –>00, 2002 –>02).

Example

To specify the date of assembly:

today: DC8 DATE 5, DATE 4, DATE 3