Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$DATETIME (get date/time)

$DATETIME acquires the current date and time according to the specified output format.

Organization of this page

Syntax

return-value=$DATETIME(output-format)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

ERROR

Script execution interrupted

An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

Example

The following example acquires the date and time (01:05:36 on 2015/04/01) in the format year/month/date hour:minutes:seconds:

[SET_VALUE]
  DATE = $DATETIME('%Y/%m/%d %H:%M:%S')
  MSG = 'DATE = ' + DATE
  $ECHO(MSG)
Execution result:

DATE = 2015/04/01 01:05:36