You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte_cdk/sources/declarative/declarative_component_schema.yaml
+46-2Lines changed: 46 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -940,14 +940,54 @@ definitions:
940
940
- "{{ config['record_cursor'] }}"
941
941
cursor_datetime_formats:
942
942
title: Cursor Datetime Formats
943
-
description: The possible formats for the cursor field, in order of preference. The first format that matches the cursor field value will be used to parse it. If not provided, the `datetime_format` will be used.
943
+
description: |
944
+
The possible formats for the cursor field, in order of preference. The first format that matches the cursor field value will be used to parse it. If not provided, the Outgoing Datetime Format will be used.
945
+
946
+
Use placeholders starting with "%" to describe the format the API is using. The following placeholders are available:
947
+
* **%s**: Epoch unix timestamp - `1686218963`
948
+
* **%s_as_float**: Epoch unix timestamp in seconds as float with microsecond precision - `1686218963.123456`
* **%z**: UTC offset - `(empty)`, `+0000`, `-04:00`
967
+
* **%Z**: Time zone name - `(empty)`, `UTC`, `GMT`
968
+
* **%j**: Day of the year (zero-padded) - `001`, `002`, ..., `366`
969
+
* **%U**: Week number of the year (Sunday as first day) - `00`, `01`, ..., `53`
970
+
* **%W**: Week number of the year (Monday as first day) - `00`, `01`, ..., `53`
971
+
* **%c**: Date and time representation - `Tue Aug 16 21:30:00 1988`
972
+
* **%x**: Date representation - `08/16/1988`
973
+
* **%X**: Time representation - `21:30:00`
974
+
* **%%**: Literal '%' character
975
+
976
+
Some placeholders depend on the locale of the underlying system - in most cases this locale is configured as en/US. For more information see the [Python documentation](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes).
944
977
type: array
945
978
items:
946
979
type: string
947
980
examples:
948
-
- "%Y-%m-%dT%H:%M:%S.%f%z"
949
981
- "%Y-%m-%d"
982
+
- "%Y-%m-%d %H:%M:%S"
983
+
- "%Y-%m-%dT%H:%M:%S"
984
+
- "%Y-%m-%dT%H:%M:%SZ"
985
+
- "%Y-%m-%dT%H:%M:%S%z"
986
+
- "%Y-%m-%dT%H:%M:%S.%fZ"
987
+
- "%Y-%m-%dT%H:%M:%S.%f%z"
988
+
- "%Y-%m-%d %H:%M:%S.%f+00:00"
950
989
- "%s"
990
+
- "%ms"
951
991
start_datetime:
952
992
title: Start Datetime
953
993
description: The datetime that determines the earliest record that should be synced.
@@ -967,6 +1007,10 @@ definitions:
967
1007
end_datetime:
968
1008
title: End Datetime
969
1009
description: The datetime that determines the last record that should be synced. If not provided, `{{ now_utc() }}` will be used.
0 commit comments