Command Reference : String and Date Function Reference
Syntax: @otod(n)
Argument: integer, n
Return: string
Observation-TO-Date. Returns a string containing the date or observation corresponding to observation number n, counted from the beginning of the current workfile. For example, consider the string assignment
%1 = @otod(5)
For an annual workfile dated 1991–2000, %1 will contain the string “1995”. For a quarterly workfile dated 1970:1–2000:4, %1 will contain the string “1971:1”. Note that @otod(1) returns the date or observation label for the start of the workfile.
See also @otods and @dtoo.