Date/Time Formats for getReport

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

Year:
YYYY

Example: 2009

Year and month:
YYYY-MM

Example: 2009-03

Complete date:
YYYY-MM-DD

Example: 2009-03-16

Complete date plus hours and minutes:
YYYY-MM-DDThh:mmTZD

Example: 2009-03-16T19:20+01:00

Complete date plus hours, minutes, and seconds:
YYYY-MM-DDThh:mm:ssTZD

Example: 2009-03-16T19:20:30+01:00

Complete date plus hours, minutes, seconds, and a decimal fraction of a second:
YYYY-MM-DDThh:mm:ss.sTZD

Example: 2009-03-16T19:20:30.45+01: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)