@Generated(value="jsii-pacmak/0.12.1 (build 3ce4842)", date="2019-06-25T13:54:15.891Z") @Stability(value=Experimental) 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)
EXPERIMENTAL
|
static Duration |
hours(Number amount)
EXPERIMENTAL
|
static Duration |
minutes(Number amount)
EXPERIMENTAL
|
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)
EXPERIMENTAL
|
Number |
toDays()
EXPERIMENTAL
|
Number |
toDays(TimeConversionOptions opts)
EXPERIMENTAL
|
Number |
toHours()
EXPERIMENTAL
|
Number |
toHours(TimeConversionOptions opts)
EXPERIMENTAL
|
String |
toISOString()
EXPERIMENTAL
|
Number |
toMinutes()
EXPERIMENTAL
|
Number |
toMinutes(TimeConversionOptions opts)
EXPERIMENTAL
|
Number |
toSeconds()
EXPERIMENTAL
|
Number |
toSeconds(TimeConversionOptions opts)
EXPERIMENTAL
|
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=Experimental) public static Duration days(Number amount)
amount - the amount of Days the `Duration` will represent.@Stability(value=Experimental) public static Duration hours(Number amount)
amount - the amount of Hours the `Duration` will represent.@Stability(value=Experimental) public static Duration minutes(Number amount)
amount - the amount of Minutes the `Duration` will represent.@Stability(value=Experimental) public static Duration parse(String duration)
duration - an ISO-formtted duration to be parsed.@Stability(value=Experimental) public static Duration seconds(Number amount)
amount - the amount of Seconds the `Duration` will represent.@Stability(value=Experimental) public Number toDays(@Nullable TimeConversionOptions opts)
@Stability(value=Experimental) public Number toDays()
@Stability(value=Experimental) public Number toHours(@Nullable TimeConversionOptions opts)
@Stability(value=Experimental) public Number toHours()
@Stability(value=Experimental) public String toISOString()
@Stability(value=Experimental) public Number toMinutes(@Nullable TimeConversionOptions opts)
@Stability(value=Experimental) public Number toMinutes()
@Stability(value=Experimental) public Number toSeconds(@Nullable TimeConversionOptions opts)
@Stability(value=Experimental) public Number toSeconds()
@Stability(value=Experimental) public String toString()
Copyright © 2019. All rights reserved.