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: DseAssembly: Dse (in Dse.dll) Version: 2.1.0
Syntax public static Duration Parse(
string input
)
Parameters
- input
- Type: SystemString
Return Value
Type:
DurationSee Also