Running file jobs : Using date-and-time expressions in names

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:

n  
n  
n  

For example, a user can use Sales Report followed by the report generation date as a document name, use the following expression:

Sales Report {mm-dd-yy}

On February 28, 2011, the name appears as:

Sales Report 02-28-11

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:

n  
n  

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 
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
Returns a date with the month name abbreviated to 3 letters: dd-mmm-yy
{Medium Date}.soi
Returns hours and minutes in 12-hour format, including AM/PM designation (hh:nn AM/PM)
Short Date
Returns a Short Date as defined in the Information Console locale map file
Short Time

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 three-letter abbreviation for the week day
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 three-letter abbreviation for the name of the month
Returns the day of the week as a number, where Sunday = 1, and Saturday = 7

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.
Returns AM/am for any hour before noon and PM/pm for any hour after. This symbol is case-sensitive.
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 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.

Times 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