Skip to content

Stratkit Time

Provides Utility functions related to Time.

  • ConvertSecondsToDurationString(seconds: Long | Int | Double)
  • Takes a number of seconds and returns a string in the format PDT#H#M#S
  • ConvertMillisecondsToDurationString(milliseconds: Long | Int | Double)
  • Takes a number of milliseconds and returns a string in the format PDT#H#M#S
  • ConvertDateTimeToISO8601
  • Takes a DateTime object and returns a string in the format YYYY-MM-DDTHH:MM:SSZ