Date/Time Formats for getReport

These formats must be used when specifying fromTime and toTime to designate a specific timbering for the getReport query.

LogLogic LMI accepts the following date and time range formats in the getReport query. You can choose one of the following formats:

  • YYYY-MM-DDThh:mm:ss

    Example: 2019-03-12T15:38:59

  • YYYY-MM-DDThh:mm:ssTZD

    Example: 2019-03-12T15:38:59-07:00

  • YYYY-MM-DDThh:mm:ss.sTZD

    Example: 2019-03-12T15:38:59.000-07:00

where:

  • YYYY = four-digit year
  • MM = two-digit month (01=January, etc.)
  • DD = two-digit day of month (01 through 31)
  • T = literal delimiter in the string, indicating the beginning of the time element
  • hh = two digits of hour (00 through 23; am/pm are not allowed)
  • mm = two digits of minute (00 through 59)
  • ss = two digits of second (00 through 59)
  • s = one or more digits representing a decimal fraction of a second
  • TZD = time zone designator (Z or +hh:mm or -hh:mm)