<@U04SE163WC8> what is the correct format for Incr...
# ask-ai
h
@kapa.ai what is the correct format for Incremental Sync date format 1727219212 and cursor Granularity
u
The correct format for Incremental Sync date format
1727219212
(which appears to be a UNIX timestamp) and cursor granularity can be set up as follows:
Copy code
yaml incremental_sync:   type: DatetimeBasedCursor   cursor_field: "created" # replace with your field name   datetime_format: "%s" # UNIX timestamp format   cursor_granularity: "PT1S" # granularity set to seconds   start_datetime:     datetime: "{{ config['start_date'] }}"     datetime_format: "%Y-%m-%d %H:%M:%S" # replace with your start date format   end_datetime:     datetime: "{{ today_utc() }}"     datetime_format: "%Y-%m-%d" # replace with your end date format   step: "P1W" # replace with your desired step   start_time_option:     field_name: "created_after" # replace with your field name     inject_into: "request_parameter"   end_time_option:     field_name: "created_before" # replace with your field name     inject_into: "request_parameter"
This configuration is based on the example provided in a [forum post](https://discuss.airbyte.io/t/3921) discussing handling UNIX timestamps with Low-Code CDK. Please replace the field names and date formats with the ones relevant to your data source.