Dates specified as command option values or arguments

Dates given directly as values for options or arguments are converted to date values by the Rational® Synergy CLI on the client machine. This means that such dates are processed using the time zone of the client machine.

The following rules are used on input:

  1. If the preference ccm.cli.format.date is defined, that date format is tried first. If a valid date can be parsed using that format, the resultant date value is used.
  2. Otherwise, the data is parsed using a "YYYY/MM/DD hh:mm:ss" format. If a valid date can be parsed, the resultant date value is used.
  3. Otherwise, the date is parsed using an ISO8601 format of "yyyy-MM-dd'T'HH:mm:ss". If a valid date can be parsed, the resultant date value is used.
  4. Otherwise, the date is parsed using a locale default short date format. If a valid date can be parsed, the resultant date value is used.
  5. Otherwise, if the date is of the form "iNNNN"where NNNN is a decimal integer, a date value is formed treating the number as the number of seconds since 1 January 1970 00:00:00 GMT.
  6. Otherwise, if the date is of the form "xNNNN" where NNNN is a hexadecimal integer, a date value is formed treating the number as the number of seconds since 1 January 1970 00:00:00 GMT.
  7. Otherwise, the date is reported as invalid.

Feedback