Test -time utility

Test date-time strings.

Syntax
imsimta test -time input-string

String to test for validity (and meaning) as a date-time.

Description
Test whether a string is a valid date-time string. See also the   utility.

, ,
The,  , and    qualifiers specify whether the input string is to  be checked as a possible  ISO 8601 time, an RFC 822 date-time,  or as a  "time stamp" string (such as from an MTA transaction log file entry),  respectively. These qualifiers are mutually exclusive; one must be specified to obtain output. expects a 23 (or more) character long input, of the general form DD-MMM-YYYY HH:MM:SS.cc or alternatively DD-MMM-YYYY:HH:MM:SS.cc though as the    centiseconds are ignored, the  output is determined only by the portion of the form: DD-MMM-YYYY HH:MM:SS or alternatively DD-MMM-YYYY:HH:MM:SS

,
and  (the default) switches are  modifiers available with the   qualifier,  indicating whether  ISO 8601 format is being tested, or  ISO 8601 P format  is being tested.

Examples
This example shows conversion of a time stamp (such as from an MTA transaction log entry) into other date-time formats. Result: 1362942794 Sun Mar 10 12:13:14 2013 After conversion to system time: "Sun, 10 Mar 2013 12:13:14 -0700 (PDT)" After conversion back to time_t: 1362942794 Sun Mar 10 12:13:14 2013 This example shows checking the validity of an ISO 8601 format time. Result: "Sun, 01 Jun 2014 02:03:04 -0700 (PDT)"
 * 1) imsimta test -time -stamp "10-MAR-2013 12:13:14.55"
 * 1) imsimta test -time -iso8601 "2014-06-01T020304.05"

See also:
 * ISO 8601 format
 * ISO 8601 P format
 * MTA transaction log entry format
 * test -zone utility
 * MTA command line utilities