DayPilot.Duration.toString

The toString() method returns a text representation.

Declaration

DayPilot.Duration.toString([pattern]);

Parameters

  • pattern (string) - output format string

If the pattern is not specified, the following format will be used: "days.hours:minutes:seconds.milliseconds"

Pattern elements:

  • "s" - seconds
  • "mm" - two-digit minutes (zero-padded)
  • "m" - minutes
  • "h", "H" - hours
  • "d" - days

Return Value

Formatted string representation of the duration.