Skip to content

Writing Timeseries Data

This overview covers shared details for write methods in Historian Multi.

Write methods accept timestamps as:

  • Python datetime objects
  • Epoch seconds (int or float) or epoch milliseconds (int)
  • Strings parsed by dateparser (e.g. "2024-01-01 00:00:00")
  • Relative strings like "now" or "1 hour ago"

The library converts timestamps to epoch milliseconds before sending requests.

  • Success responses return {"success": true, "message": "All points written!"}.
  • If the server rejects points, success will be false and message contains the server response.