interface TimeConversionOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.TimeConversionOptions |
Java | software.amazon.awscdk.core.TimeConversionOptions |
Python | aws_cdk.core.TimeConversionOptions |
TypeScript (source) | @aws-cdk/core » TimeConversionOptions |
Options for how to convert time to a different unit.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from '@aws-cdk/core';
const timeConversionOptions: cdk.TimeConversionOptions = {
integral: false,
};
Properties
Name | Type | Description |
---|---|---|
integral? | boolean | If true , conversions into a larger time unit (e.g. Seconds to Minutes ) will fail if the result is not an integer. |
integral?
Type:
boolean
(optional, default: true)
If true
, conversions into a larger time unit (e.g. Seconds
to Minutes
) will fail if the result is not an integer.