Using date-and-time expressions in names
Information Console supports date-and-time expressions to automatically add the document generation date and time value to the:
For example, a user can use Sales Report followed by the report generation date as a document name, use the following expression:
On February 28, 2011, the name appears as:
When scheduling a report to run on a recurring basis, adding a date-and-time expression creates unique document, directory, or version names. A user can create date-and-time expressions in either of the following ways:
Table 4-12 lists the date-and-time format keywords to use and the expression to which each keyword evaluates in a report. This table uses the locale English (USA). Actuate recommends not using General Date, Long Date, Long Time, Medium Time, and Short Time types.
Table 4-12 Date-and-time expressions General Date Returns a date and time in the Short Date Long Time format as defined in the Information Console locale map file 01/23/2011 Long Date Returns a Long Date as defined in the Information Console locale map file Tuesday, January 23, 2011 Long Time Returns a Long Time as defined in the Information Console locale map file Medium Date Returns a date with the month name abbreviated to 3 letters: dd-mmm-yy {Medium Date}.soi 23-Jan-11.
soi Medium Time Returns hours and minutes in 12-hour format, including AM/PM designation (hh:nn AM/PM) {Medium Time} Short Date Returns a Short Date as defined in the Information Console locale map file 01-23-2011.
soi Short Time Returns hours and minutes in 24-hour format (hh:nn)Table 4-13 lists the date format symbols to use and the expression to which each symbol evaluates in a report.
Table 4-13 Date format symbols Returns the Short Date Long Time format as defined in the Information Console locale map file 01/23/2011 8:53:03PM Returns the day of the month without a leading zero (1-31) Returns the day of the month with a leading zero (01-31) Returns the three-letter abbreviation for the week day Returns the full name of the day of the week Returns the Short Date string as defined in the Information Console locale map file Returns the Long Date string as defined in the Information Console locale map file Tuesday, January 23, 2011.soi Returns the number of the month without a leading zero Returns the number of the month with a leading zero Returns the three-letter abbreviation for the name of the month Returns the day of the week as a number, where Sunday = 1, and Saturday = 7 Returns the week of the year as a number (1-53) Returns the number of the day of the year (1-365) Returns the last two digits of the year (00-99) Returns all four digits of the year (1000-9999)Examples and results with a .soi file-name extension are document names. Examples and results without a .soi file-name extension are version names.
Table 4-14 lists the time format symbols that you use and the expression that each symbol evaluates in a report. The examples and results use a .soi file-name extension for names of document file types. The examples and results without a .soi file-name extension are version names.
Table 4-14 Time format symbols Uses the format that is defined in the Actuate Information Console locale map file. The default format is AM/PM. 8:45:3 PM Returns AM/am for any hour before noon and PM/pm for any hour after. This symbol is case-sensitive. {hh:nn:ss am
/pm}{hh:nn:ss AM
/PM} Returns A/a for any hour before noon and P/p for any hour after noon. This symbol is case-sensitive. Returns the hour of the day without the leading zero (0-23) Returns the hour of the day with a leading zero (00-23) Returns the minute without a leading zero (0-59) Returns the minute with a leading zero(00-59) Returns the number of seconds without a leading zero (0-59) Returns the number of seconds with a leading zero (00-59) Uses the format that is defined in the Actuate Information Console locale map file. 8:45:00 PMTimes return in 24-hour format unless you use an AM/PM symbol. The symbol for minute is n. The symbol for month is m.
(c) Copyright Actuate Corporation 2011 |
![]() |