@Generated(value="jsii-pacmak/0.14.3 (build 1b1062d)", date="2019-08-14T08:10:20.278Z") @Stability(value=Stable) public class Duration extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
Duration(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
static Duration |
days(Number amount) |
static Duration |
hours(Number amount) |
static Duration |
minutes(Number amount) |
static Duration |
parse(String duration)
Parse a period formatted according to the ISO 8601 standard (see https://www.iso.org/fr/standard/70907.html).
|
static Duration |
seconds(Number amount) |
Number |
toDays() |
Number |
toDays(TimeConversionOptions opts) |
Number |
toHours() |
Number |
toHours(TimeConversionOptions opts) |
String |
toISOString() |
Number |
toMinutes() |
Number |
toMinutes(TimeConversionOptions opts) |
Number |
toSeconds() |
Number |
toSeconds(TimeConversionOptions opts) |
String |
toString()
Returns a string representation of this `Duration` that is also a Token that cannot be successfully resolved.
|
jsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected Duration(software.amazon.jsii.JsiiObject.InitializationMode mode)
@Stability(value=Stable) public static Duration days(Number amount)
amount - the amount of Days the `Duration` will represent.@Stability(value=Stable) public static Duration hours(Number amount)
amount - the amount of Hours the `Duration` will represent.@Stability(value=Stable) public static Duration minutes(Number amount)
amount - the amount of Minutes the `Duration` will represent.@Stability(value=Stable) public static Duration parse(String duration)
duration - an ISO-formtted duration to be parsed.@Stability(value=Stable) public static Duration seconds(Number amount)
amount - the amount of Seconds the `Duration` will represent.@Stability(value=Stable) public Number toDays(@Nullable TimeConversionOptions opts)
@Stability(value=Stable) public Number toDays()
@Stability(value=Stable) public Number toHours(@Nullable TimeConversionOptions opts)
@Stability(value=Stable) public Number toHours()
@Stability(value=Stable) public String toISOString()
@Stability(value=Stable) public Number toMinutes(@Nullable TimeConversionOptions opts)
@Stability(value=Stable) public Number toMinutes()
@Stability(value=Stable) public Number toSeconds(@Nullable TimeConversionOptions opts)
@Stability(value=Stable) public Number toSeconds()
@Stability(value=Stable) public String toString()
Copyright © 2019. All rights reserved.