Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

JobRun - getStartTimeByRunKey_1


JobRun - getStartTimeByRunKey

Description :

This command gets the formatted start time for a job run. You must provide the job run's runKey.

You can use any of the following to get the jobRunKey:

JobRun findLastRunKeyByJobKey

JobRun findLastRunKeyById

The start time is formatted using Java's SimpleDateFormat patterns. (See getEndTimeByRunKey for a similar command that provides the start time in Java date format.) The following list briefly describes SimpleDateFormat patterns. The first item in the list labels components of subsequent items in the list.

  • Letter--date piece--example
  • y--year--05,2005
  • M--month--Aug,August,08
  • d--day of month--15
  • H--hour of day (24h format,0-23)--16
  • m--minute of hour--35
  • s--second of minute--21
     Other possible patterns are:
  • Letter--date piece--example
  • z--time zone (general)--EDT
  • Z--time zone (RFC822)-- -0400
  • E--day of week--Wed,Wednesday
  • G--era--AD
  • w--week of year--35
  • D--day of year--156
  • W--week of month--3
  • F--day of week of month--2
  • a--am/pm-- PM
  • k--hour of day(1-24)--
  • K--hour of AM/PM(0-11)--
  • h--hour of AM/PM(1-12)--
  • S--Millisecond--
     For example, for the date of 5 Aug 2005, 2:40:56 PM on a client in the Eastern time zone, a format string of "yyyy/MM/dd HH:mm:ss" produces the output 2005/08/05 14:40:56.

    Return type : java.lang.Object

Command Input :

Variable Name

Variable Type

Description

jobRunKey

DBKey

Handle identifying a particular job run.

format

String

Format for presenting time. See above for a more complete description.

Example

See JobRun findAllRunKeysByJobKey for an example showing one way to use this command.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*