Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 825 Bytes

year-pct.rst

File metadata and controls

34 lines (20 loc) · 825 Bytes

YEAR%

Syntax

YEAR% [datestamp]

Location

SMSQ/E

This function complements the date and date-dlr functions, by returning the year number corresponding to the given datestamp, or current date, if no datestamp was given.

Examples

PRINT YEAR% (0)

will print the year part of the QL's epoch, 1961

PRINT YEAR%

will print the current year number.

CROSS-REFERENCE

See date, month-pct.