These methods are included as convenience shortcuts for end users.
|Prints collections in a format easier to read|
|Formats the provided date string as ISO8601 UTC|
Prints a collection to the console in a format easier to read. Can alternatively print to a text file if a filename is provided.
Used in the examples to print the results returned by other class methods.
Any collection, including scalar values, ^dictionaries and ^lists (i.e. those returned by other methods)
If present, the ^dictionary will be printed to a text file with this filename.
When not present, the dictionary is printed to the console.
Default value: None (prints to console)
(parameters with an underline are required)
|Examples of inputs & outputs|
Formats the provided date string as a ISO8601 UTC date string (the date format required by the API).
Provides an easy way to format dates to include as filters in "
dateFrom" and "
A string that represents a date & time in any of the formats described in the parser.parse() method. Most date formats work, including:
Default value: 'now'
'2018-09-26, 12:00 PM'
|Example: Print a UTC date formated as ISO8601|
The above code will output the UTC date in ISO8601 format, as expected for dates in filters provided to other class methods: