Atlato Developer
DocsUse CasesCommunitySupport
DocsUse CasesCommunitySupport
Facebook
Linkedin
Instagram
  1. Guides
  • Overview
    • Developer Platform
  • Getting Started
    • Register Account
    • Manage Apps
    • Manage a Company
    • App Access
    • Store App Access
    • Mode
  • App Store
    • Authentication
    • Access Rights
    • Event Log
    • Company Settings
    • Manage Account
  • Device Integration
    • Design
    • Installation
    • Device List
  • Device API
    • Protocols
    • New Integration
    • Data Output
    • Device Input Names
  • Deployment
    • Custom Client App
  • API Request
    • REST API
    • Request Structure
    • Metadata
    • Pagination
    • Errors
    • Troubleshooting
  • Support
    • Developer Request Types
  • Guides
    • Best practices
    • Timezones
    • Libraries
    • Key Concepts
    • Terms of Use
    • Rate limits
  • Feedback Center
    • Feedback
    • Community
    • FAQ
  • Api Integration
    • Use token in your app
    • Event Logging API
    • Meta Data API
    • Lastest Device Data API
    • Past Device Data API
    • Devices API
    • Country City Currency API
  • App Integration APIs
    • Meta Data
    • Meta Data API
    • Lastest Device Data API
    • Past Device Data API
    • Event Logging API
    • Devices API
    • Country City Currency API
  • Developer Platform
    • Access
    • User
    • Device
    • Manage Account
    • Company
  1. Guides

Timezones

When working with APIs, it's crucial to handle timezones properly to ensure consistency and accuracy in data across different regions and systems. This section provides guidelines and details on how timezones are managed and represented within this API.
1.
UTC Standard
2.
Timezone Offsets
3.
ISO 8601 Format
4.
Timezone Identifiers
5.
Handling Timezones in Requests
6.
Handling Timezones in Responses
7.
Conversion to Local Time
8.
Daylight Saving Time (DST)
UTC Standard
UTC (Coordinated Universal Time) is the standard time used by this API. All timestamps are expected to be in UTC unless specified otherwise.
📌
Example
2023-07-18T15:23:45Z where the Z denotes Zulu time, another name for UTC.
Timezone Offsets
If timestamps are provided in a different timezone, they should include an offset from UTC.
📌
Example
2023-07-18T15:23:45+02:00 indicates the time is two hours ahead of UTC.
ISO 8601 Format
All datetime strings should adhere to the ISO 8601 format. This ensures consistency and avoids ambiguity.
📌
Example
2023-07-18T15:23:45Z or 2023-07-18T13:23:45-02:00.
Timezone Identifiers
When specifying a timezone, use the IANA Time Zone Database format (e.g., America/New_York, Europe/London).
📌
Example
2023-07-18T15:23:45-04:00[America/New_York].
Handling Timezones in Requests
Always specify the timezone when sending datetime data to the API. If not specified, the API assumes UTC.
{
    "event_time": "2023-07-18T15:23:45Z"
}
Handling Timezones in Responses
The API will return all datetime data in UTC by default. If a different timezone is required, use the appropriate request parameters or headers to specify the desired timezone.
{
   "event_time":"2023-07-18T15:23:45Z"
}
Conversion to Local Time
For clients requiring local time, the API supports conversion parameters. Ensure the client properly converts the UTC time to the local time based on their specific needs.
{
    "event_time_utc": "2023-07-18T15:23:45Z",
    "event_time_local": "2023-07-18T11:23:45-04:00"
}
Daylight Saving Time (DST)
Be aware of Daylight Saving Time changes as they can affect local times. The API will automatically adjust times for timezones observing DST.
Modified at 2024-07-19 09:16:55
Previous
Best practices
Next
Libraries
Built with