Click or drag to resize
DurationParse Method
Creates a new Duration instance from the string representation of the value.

Accepted formats:

  • multiple digits followed by a time unit like: 12h30m where the time unit can be:
    • y: years
    • m: months
    • w: weeks
    • d: days
    • h: hours
    • m: minutes
    • s: seconds
    • ms: milliseconds
    • us or µs: microseconds
    • ns: nanoseconds
  • ISO 8601 format:
    P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W
  • ISO 8601 alternative format:
    P[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]

Namespace: Dse
Assembly: Dse (in Dse.dll) Version: 2.2.0
Syntax
C#
public static Duration Parse(
	string input
)

Parameters

input
Type: SystemString

Return Value

Type: Duration
See Also