flytekit.core.artifact_utils
Directory
Classes
Class | Description |
---|---|
LabelValue |
A ProtocolMessage. |
Partitions |
A ProtocolMessage. |
TimePartition |
A ProtocolMessage. |
Timestamp |
A ProtocolMessage. |
datetime |
datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]]). |
flytekit.core.artifact_utils.LabelValue
A ProtocolMessage
flytekit.core.artifact_utils.Partitions
A ProtocolMessage
flytekit.core.artifact_utils.TimePartition
A ProtocolMessage
flytekit.core.artifact_utils.Timestamp
A ProtocolMessage
Methods
Method | Description |
---|---|
FromDatetime() |
Converts datetime to Timestamp |
FromJsonString() |
Parse a RFC 3339 date string format to Timestamp |
FromMicroseconds() |
Converts microseconds since epoch to Timestamp |
FromMilliseconds() |
Converts milliseconds since epoch to Timestamp |
FromNanoseconds() |
Converts nanoseconds since epoch to Timestamp |
FromSeconds() |
Converts seconds since epoch to Timestamp |
GetCurrentTime() |
Get the current UTC into Timestamp |
ToDatetime() |
Converts Timestamp to a datetime |
ToJsonString() |
Converts Timestamp to RFC 3339 date string format |
ToMicroseconds() |
Converts Timestamp to microseconds since epoch |
ToMilliseconds() |
Converts Timestamp to milliseconds since epoch |
ToNanoseconds() |
Converts Timestamp to nanoseconds since epoch |
ToSeconds() |
Converts Timestamp to seconds since epoch |
FromDatetime()
def FromDatetime(
dt,
):
Converts datetime to Timestamp.
Parameter | Type |
---|---|
dt |
FromJsonString()
def FromJsonString(
value,
):
Parse a RFC 3339 date string format to Timestamp.
Parameter | Type |
---|---|
value |
FromMicroseconds()
def FromMicroseconds(
micros,
):
Converts microseconds since epoch to Timestamp.
Parameter | Type |
---|---|
micros |
FromMilliseconds()
def FromMilliseconds(
millis,
):
Converts milliseconds since epoch to Timestamp.
Parameter | Type |
---|---|
millis |
FromNanoseconds()
def FromNanoseconds(
nanos,
):
Converts nanoseconds since epoch to Timestamp.
Parameter | Type |
---|---|
nanos |
FromSeconds()
def FromSeconds(
seconds,
):
Converts seconds since epoch to Timestamp.
Parameter | Type |
---|---|
seconds |
GetCurrentTime()
def GetCurrentTime()
Get the current UTC into Timestamp.
ToDatetime()
def ToDatetime(
tzinfo,
):
Converts Timestamp to a datetime.
Parameter | Type |
---|---|
tzinfo |
ToJsonString()
def ToJsonString()
Converts Timestamp to RFC 3339 date string format.
Returns: A string converted from timestamp. The string is always Z-normalized and uses 3, 6 or 9 fractional digits as required to represent the exact time. Example of the return format: ‘1972-01-01T10:00:20.021Z’
ToMicroseconds()
def ToMicroseconds()
Converts Timestamp to microseconds since epoch.
ToMilliseconds()
def ToMilliseconds()
Converts Timestamp to milliseconds since epoch.
ToNanoseconds()
def ToNanoseconds()
Converts Timestamp to nanoseconds since epoch.
ToSeconds()
def ToSeconds()
Converts Timestamp to seconds since epoch.
flytekit.core.artifact_utils.datetime
datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints.