aws-cdk-lib.TimeConversionOptions

interface TimeConversionOptions

LanguageType name
.NETAmazon.CDK.TimeConversionOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2#TimeConversionOptions
Javasoftware.amazon.awscdk.TimeConversionOptions
Pythonaws_cdk.TimeConversionOptions
TypeScript (source)aws-cdk-lib » 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-lib';
const timeConversionOptions: cdk.TimeConversionOptions = {
  integral: false,
};

Properties

NameTypeDescription
integral?booleanIf 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.