toInfluxDateTime

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

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

Examples

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

Meta