Symbols
General
Representations and expressions specified in this document make use of the symbols listed in Time scale component symbols through Separator symbols.
Representations (also referred to as "format representations") give rise to expressions for dates, times, intervals and recurring intervals.
EXAMPLE
[YYYY]is a format representation for a calendar year, where eachYis to be replaced by a single digit creating an expression, for example'1985'.- The date and time representation
[YYYY]["-"][MM]["-"][DD]gives rise to the expression'2003-02-10'which identifies 10 February 2003.
To clearly separate date and representation from the text, punctuation marks and associated symbols used to describe them, the following symbols are used to demarcate boundaries of expressions and representations in this document:
- single quotation marks enclose expressions (for example,
'1985'); in some cases they are omitted to reflect the actualities of the examples; the are omitted in Clause 5. - all individual tokens that are part of a representation are contained between the open and close brackets symbols (
"["and"]");EXAMPLE
- For the date and time representation
[YYYY]["-"][MM]["-"][DD],[YYYY],["-"],[MM],["-"], and[DD]are individual tokens and enclosed by brackets.
- For the date and time representation
- when double quotations marks enclose a string within a representation, that string is a literal and becomes part of any expression of that representation.
EXAMPLE
- The representation
[i]["Y"]represents a positive integer followed by the symbol"Y".'12Y'meaning "12 years" is an expression of that representation.
- The representation
Quotation marks and brackets are not part of the expression or representation itself and shall be omitted in implementation.
All characters used in date and time expressions and representations are part of the ISO/IEC 646 repertoire, except for "hyphen", "minus" and "plus-minus". In an environment where use is made of a character repertoire based on ISO/IEC 646, "hyphen" and "minus" should be both mapped onto "hyphen-minus".
The character "space" shall not be used in the expressions.
Time scale component symbols
The following time scale component symbols are in implied form, for the representation of date and time.
- year
- time scale component calendar year
- month
- time scale component calendar month
- week
- time scale component calendar week of year
- day
- time scale component calendar day of month
- dayk
- time scale component calendar day of week
- dayo
- time scale component calendar day of year
- hour
- time scale component clock hour
- min
- time scale component clock minute
- sec
- time scale component clock second
- dec
- time scale component decade
- cent
- time scale component century
time scale component extended to accept a fixed-point number, with digits in the decimal part and digits in the fractional part; for example,
[year(6,0)]represents a year time scale component that accepts 6 digits for year;min(2,3)represents a minute time scale component that accepts 2 digits in the decimal part and 3 digits in the fraction part, separated by a decimal signNOTE
If is omitted it is assumed to be zero. Thus
[year(6)]means the same as[year(6,0)].
Composite component symbols
- date
- the composite time scale components for the complete representation of a date as determined in 5.2.2.1 a)
- dateX
- the composite time scale components for the complete representation of a date as determined in 5.2.2.1 a)
- odate
- the composite time scale components for the complete representation of an ordinal date of year as determined 5.2.3.1 a)
- odateX
- the composite time scale components for the complete representation of an ordinal date of year as determined 5.2.3.1 b)
- wdate
- the composite time scale components for the complete representation of a week date as determined in 5.2.4.1 a)
- wdateX
- the composite time scale components for the complete representation of a week date as determined in 5.2.4.1 b)
- shift
- the composite time scale components for time shift in basic form with hours and minutes, as determined in 4.3.13 a)
- shiftH
- the composite time scale components for time shift in basic hourly form, as determined in 4.3.13 b)
- shiftX
- the composite time scale components for time shift in extended form, as determined in 4.3.13 c)
- time
- the composite time scale components for the complete representation of a time of day as determined in 5.3.1.2 a)
- timeX
- the composite time scale components for the complete representation of a time of day as determined in 5.3.1.2 b)
- duration
- the composite time scale units for the representation of a duration as determined in 5.5.2.2 a) and b)
Symbols used in place of digits or signs
These symbols are used to represent characters in the date and time representations. They are used in representations only, and are replaced by one or more characters, as described, in expressions:
- Y
- a digit used in the time scale component "calendar year"
- M
- a digit used in the time scale component "calendar month"
- D
- a digit used in the time scale component "calendar day"
- E
- a digit used in the time scale component "century"
- W
- a digit used in the time scale component "calendar week"
- h
- a digit used in the time scale component "clock hour"
- m
- a digit used in the time scale component "clock minute"
- s
- a digit used in the time scale component "clock second"
- n
- a positive integer, may be left absent to signify an unbounded value
- i
- a positive integer
- ±
- a plus sign
["+"]to represent a positive value or zero (the plus sign shall not be omitted), or a minus sign["-"]otherwise
Designator symbols
These symbols are used to represent designators in the date and time expressions:
- "H"
- the hour designator, following a data element which represents the number of hours in a duration expression
- "M"
- the months or minutes designator, following a data element which represents the number of months or minutes in a duration expression
NOTE
Although
"M"can be used to designate months or minutes, its meaning is unambiguous in expressions because the portion of a duration statement is preceded by the character"T". - "P"
- the duration designator, preceding the component which represents the duration
NOTE
The use of the character
"P"is based on the historical use of the term "period" for duration. - "R"
- the recurring time interval designator
- "S"
- the seconds designator, following a data element which represents the number of seconds in a duration expression
- "T"
- the time designator, which indicates
- the start of the representation of local time of day to designate local time of day expressions as such;
- the start of the representation of the time of day in date and time expressions;
- the start of the representation of the number of hours, minutes or seconds in expressions of duration
- "Y"
- the years designator, following a data element which represents the number of years in a duration expression
- "W"
- the week designator, following a data element which represents the ordinal number of a calendar week within the calendar year
- "Z"
- the UTC designator, added to the end of a time representation to indicate that a time of day is represented as UTC of day
NOTE
The use of the character
"Z"comes from its commonly known relationship with the "zero meridian", and its usage in the military and navigation as "Zulu time" which was inherited from GMT (Greenwich Mean Time). - "𝑥"
- the representation of character
"𝑥"according to the textual representation of"𝑥"in the ISO/IEC 646 repertoire
Separator symbols
In date and time expressions and date and time representations, the following characters are used as separators.
- "-" (hyphen)
the
"-"hyphen character, in extended format, separates the time scale components for "year" and "month", "year" and "week", "year" and "day", "month" and "day", and "week" and "day"- ":" (colon)
the
":"colon character, in extended format, separates the time scale components for "hour" and "minute", and "minute" and "second"- "/" (solidus)
the
"/"solidus character separates start and end times in the representation of a time interval, as well as the symbols"R"from tge remainder of a recurring time interval representation- "." (period), "," (comma)
the
"."period and","comma characters are decimal sign used to separate the integer part from the decimal fraction of a number