pub struct UDateFormat { /* private fields */ }
Expand description

Implements UDateFormat

Implementations

Creates a new UDateFormat based on the provided styles.

Neither time_style nor date_style may be UDAT_PATTERN. If you need formatting with a pattern, use instead new_with_pattern. Implements udat_open

Creates a new UDateFormat based on the provided pattern.

One example pattern is: “yyyy-MM-dd’T’HH:mm:ssXX”.

Implements udat_open

Implements udat_setCalendar

Parses a date-time given as a string into a sys::UDate timestamp.

This version of date parsing does not allow reuse of the input parameters so it is less useful for purposes that are not one-shot. See somewhat more detailed parse_from_position instead.

Implements udat_parse

Parses a date-time given as a string into a sys::UDate timestamp and a position indicating the first index into datetime that was not consumed in parsing. The position parameter indicates the index into datetime that parsing should start from.

Implements udat_parse

Formats a date using this formatter.

Implements udat_format

Trait Implementations

Formats the value using the given formatter. Read more

Implements udat_close

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.