ParseDatestamp¶
Parse a string into a datestamp according to some format.
This will convert a formatted date string into a datestamp object. The format can be either a standard format such as ISO 8601, RFC 3339, a manually specified format using placeholders, or a heuristic mode that tries to recognize a variety of formats. Be aware that the heuristic mode can be ambiguous and should only be used when the range of possible inputs is known in advance. For cases where the time zone is not given in the string, the set timezone is used. Version 0.5.0
Ports/Properties¶
string¶
Input string to parse.
- verbose name: String
- default value: None
- port type: DataPort
- value type: str (can be None)
- data direction: IN
datestamp¶
Datestamp.
- verbose name: Datestamp
- default value: None
- port type: DataPort
- value type: datetime (can be None)
- data direction: OUT
format¶
Assumed string format for parsing. Besides the two predefined formats, you can also use a date format string using placeholders such as YYYY-MM-DD HH:MM:SS.sssZ. Strict recognizes unambiguous formats such as ISO 8601, RFC 3339, and a few other common formats. The heuristic mode is more lenient and tries to recognize a wider range of formats, but be aware that these are often ambiguous with respect to the time zone, and can even be ambiguous about the order of months, days, and so forth. Be sure to then set the assumed time zone as is appropriate for your use case.
- verbose name: Format
- default value: strict
- port type: ComboPort
- value type: str (can be None)
timezone¶
Time zone if not provided in string. Time zones are formatted as in US/Pacific, Europe/London, and so forth.
- verbose name: Assumed Time Zone (If Not Provided)
- default value: UTC
- port type: ComboPort
- value type: str
locale¶
Locale for parsing of month and day names. Note that additional locales may be supported by the implementation.
- verbose name: Locale For Month/day Names
- default value: en
- port type: ComboPort
- value type: str (can be None)
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
- verbose name: Set Breakpoint (Debug Only)
- default value: False
- port type: BoolPort
- value type: bool (can be None)
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.
- verbose name: Metadata
- default value: {}
- port type: DictPort
- value type: dict (can be None)