# TimeConversionOptions

Options for how to convert time to a different unit.

- Source: [`core/lib/duration.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/duration.ts#L298)

## Example

```ts
// 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

- `integral`: boolean = true — If `true`, conversions into a larger time unit (e.g. `Seconds` to `Minutes`) will fail if the result is not an integer.
