Fleece does not have a native type for dates or times; like JSON, they are represented as strings in ISO-8601 format, which look like "2008-08-07T05:18:51.589Z".
They can also be represented more compactly as numbers, interpreted as milliseconds since the Unix epoch (midnight at January 1 1970, UTC.)
typedef int64_t FLTimestamp A point in time, expressed as milliseconds since the Unix epoch (1-1-1970 midnight UTC.)A value representing a missing timestamp; returned when a date cannot be parsed.
◆ FLArray typedef const struct _FLArray* FLArrayA reference to an array value.
◆ FLDict typedef const struct _FLDict* FLDictA reference to a dictionary (map) value.
◆ FLDoc typedef struct _FLDoc* FLDocA reference to a document.
◆ FLEncoderA reference to an encoder.
◆ FLMutableArrayA reference to a mutable array.
◆ FLMutableDictA reference to a mutable dictionary.
◆ FLSharedKeysA reference to a shared-keys mapping.
◆ FLSlot typedef struct _FLSlot* FLSlotA reference to a mutable array/dict item.
◆ FLTimestampA point in time, expressed as milliseconds since the Unix epoch (1-1-1970 midnight UTC.)
◆ FLValue typedef const struct _FLValue* FLValueA reference to a value of any type.
◆ FLErrorError codes returned from some API calls.
Enumerator kFLNoError kFLMemoryError kFLOutOfRange kFLInvalidData kFLEncodeError kFLJSONError kFLUnknownValue kFLInternalError kFLNotFound kFLSharedKeysStateError kFLPOSIXError kFLUnsupported ◆ FLTrustSpecifies whether not input data is trusted to be 100% valid Fleece.
Enumerator kFLUntrustedInput data is not trusted to be valid, and will be fully validated by the API call.
kFLTrustedInput data is trusted to be valid.
The API will perform only minimal validation when reading it. This is faster than kFLUntrusted, but should only be used if the data was generated by a trusted encoder and has not been altered or corrupted. For example, this can be used to parse Fleece data previously stored by your code in local storage. If invalid data is read by this call, subsequent calls to Value accessor functions can crash or return bogus results (including data from arbitrary memory locations.)
◆ FLTimestamp_FromString()Parses an ISO-8601 date-time string to a timestamp.
On failure returns FLTimestampNone
.
FLValue
and interprets numeric representations as well as strings.
Returns an FLTimestamp corresponding to the current time.
◆ FLTimestamp_ToString()Formats a timestamp as a date-time string in ISO-8601 format.
FLEncoder
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4