# DatetimeOptionsProperty

Represents additional options for correct interpretation of datetime parameters used in the Amazon S3 path of a dataset.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_databrew as databrew } from 'aws-cdk-lib';
const datetimeOptionsProperty: databrew.CfnDataset.DatetimeOptionsProperty = {
  format: 'format',

  // the properties below are optional
  localeCode: 'localeCode',
  timezoneOffset: 'timezoneOffset',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_databrew as databrew

datetime_options_property = databrew.CfnDataset.DatetimeOptionsProperty(
    format="format",

    # the properties below are optional
    locale_code="localeCode",
    timezone_offset="timezoneOffset"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.databrew.*;

DatetimeOptionsProperty datetimeOptionsProperty = DatetimeOptionsProperty.builder()
        .format("format")

        // the properties below are optional
        .localeCode("localeCode")
        .timezoneOffset("timezoneOffset")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataBrew;

var datetimeOptionsProperty = new DatetimeOptionsProperty {
    Format = "format",

    // the properties below are optional
    LocaleCode = "localeCode",
    TimezoneOffset = "timezoneOffset"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

datetimeOptionsProperty := &DatetimeOptionsProperty{
	Format: jsii.String("format"),

	// the properties below are optional
	LocaleCode: jsii.String("localeCode"),
	TimezoneOffset: jsii.String("timezoneOffset"),
}
```

## Properties

- `format`: string (required) — Required option, that defines the datetime format used for a date parameter in the Amazon S3 path.

  Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".

- `localeCode`: string — Optional value for a non-US locale code, needed for correct interpretation of some date formats.

- `timezoneOffset`: string — Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path.

  Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
