Difference between revisions of "Date and Time formats in Content Manager OnDemand"

Jump to navigation Jump to search
Updates to IBM CMOD arsdate command & date formats.
(Expanded IBM CMOD date formats.)
(Updates to IBM CMOD arsdate command & date formats.)
Line 14: Line 14:
A UNIX time format of 129600 is January 2nd, 1970 at 12:00pm UTC.  Timezone calculations add complexity, but there are functions available in most programming languages to make this adjustment for you, based on your server's configured time zone.
A UNIX time format of 129600 is January 2nd, 1970 at 12:00pm UTC.  Timezone calculations add complexity, but there are functions available in most programming languages to make this adjustment for you, based on your server's configured time zone.


== Old Formats ==
== Old IBM CMOD Date Formats ==
The old formats are simply stored as integers.  Searching OnDemand through [arsdoc query] will perform the conversion to a human readable format, as per the IBM CMOD Folder Definition.
The old formats are simply stored as integers.  Searching OnDemand through [[arsdoc query]] will perform the conversion to a human readable format, as per the IBM CMOD Folder Definition.  But if you need to convert from an OnDemand date format into a human readable format, you can use the arsdate command.


IBM Content Manager OnDemand's arsdate utility will assist in converting date formats from the command line (see below for IBM CMOD's arsdate examples):
IBM Content Manager OnDemand's arsdate utility will assist in converting date formats from the command line (see below for IBM CMOD's arsdate examples):
Line 24: Line 24:


   # Convert from a CMOD internal time format to a human readable date & time format:
   # Convert from a CMOD internal time format to a human readable date & time format:
   # ./arsdate -i 1489982862
   # arsdate -i 1489982862
   1489982862 -> 03/20/17 04:07:42
   1489982862 -> 03/20/17 04:07:42


 
  # Convert from a human readable date to the IBM CMOD internal date format:
  # arsdate -a 11/28/16
  11/28/16 -> 17134


== New Formats ==
== New Formats ==

Navigation menu