Skip to content

Format Parameter

The Format parameter is a 4 element, comma delimited array holding the settings used for replacing the space and degree, the precision of numerical values and the time zone identifier.

Format[0] Space Replace

By using the Space Replace element you can tell the API what character to send back instead of a space character by sending a UTF-8 character code or the special string '$nbsp'. '$nbsp' will send the HTML Character Entity of ' ', which is really only useful when the HTML Parameter is also used. Integer values between 33 and 126 inclusive are allowed. UTF-8 Character code values can be found at the UTF-8 encoding table and Unicode characters web page.

Example

Format[1] Degree Replace

By using the Degree Replace element you can tell the API what character to send back instead of a degree character by sending a UTF-8 character code. Integer values between 33 and 126 inclusive are allowed. UTF-8 Character code values can be found at the UTF-8 encoding table and Unicode characters web page.

Example

Format[2] Precision

By using the Precision element you can tell the API how many decimal places you want numeric values returned with. If you don't specify this value, 0 will be assumed. Integer values between 0 and 10 inclusive are allowed.

Example

Format[3] Time Zone Identifier

By using the Time Zone Identifier element you can tell the API what Time Zone you'd like the browser date and time displayed in when it is calculated. Any value from the PHP List of Supported Timezones are allowed. If none is provided, "America/New_York" is assumed.

Example