TimeConversionOptions
- class aws_cdk.TimeConversionOptions(*, integral=None)
Bases:
object
Options for how to convert time to a different unit.
- Parameters:
integral (
Optional
[bool
]) – Iftrue
, conversions into a larger time unit (e.g.Seconds
toMinutes
) will fail if the result is not an integer. Default: true- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk as cdk time_conversion_options = cdk.TimeConversionOptions( integral=False )
Attributes
- integral
If
true
, conversions into a larger time unit (e.g.Seconds
toMinutes
) will fail if the result is not an integer.- Default:
true