compiled-date

operator

Return type:
String
Returns:
formatted compiled-date string.
Syntax
compiled-date string-expression


Purpose

compiled-date returns the date and time taken when the OmniMark program was compiled.

The compiled-date operator must be followed by a string expression that can contain ordinary characters, format items, and date format items. Ordinary characters are passed through unchanged, and the format items are replaced with the appropriate values.

For example, the following process rule will output the current date in a YY/MM/DD format, and it will output the time the program was compiled in an HH:MM:SS format:

  process
     local string today
     local string compilation-time
  
     set today to date "=Y/=M/=D%n"
     output today || "%n"
  
     set compilation-time to compiled-date "=h:=m:=s%n"
     output compilation-time || "%n"

For a list of format items for compiled-date, see the date entry.

Related Syntax