toInfluxDateTime

Converts a SysTime to a string suitable for use in queries e.g. SELECT * FROM foo WHERE time >=

  1. string toInfluxDateTime(DateTime time)
  2. string toInfluxDateTime(SysTime time)
    @safe
    string
    toInfluxDateTime
    (
    in SysTime time
    )

Examples

import std.datetime: UTC;
SysTime(DateTime(2017, 2, 1), UTC()).toInfluxDateTime.shouldEqual("'2017-02-01T00:00:00Z'");

Meta