altair.TimeLocale#
- class altair.TimeLocale(date=Undefined, dateTime=Undefined, days=Undefined, months=Undefined, periods=Undefined, shortDays=Undefined, shortMonths=Undefined, time=Undefined, **kwds)#
TimeLocale schema wrapper.
Locale definition for formatting dates and times.
- Parameters:
- datestr
The date (%x) format specifier (e.g., “%m/%d/%Y”).
- dateTimestr
The date and time (%c) format specifier (e.g., “%a %b %e %X %Y”).
- daysSequence[str],
Vector7string
The full names of the weekdays, starting with Sunday.
- monthsSequence[str],
Vector12string
The full names of the months (starting with January).
- periodsSequence[str],
Vector2string
The A.M. and P.M. equivalents (e.g., [“AM”, “PM”]).
- shortDaysSequence[str],
Vector7string
The abbreviated names of the weekdays, starting with Sunday.
- shortMonthsSequence[str],
Vector12string
The abbreviated names of the months (starting with January).
- timestr
The time (%X) format specifier (e.g., “%H:%M:%S”).
- __init__(date=Undefined, dateTime=Undefined, days=Undefined, months=Undefined, periods=Undefined, shortDays=Undefined, shortMonths=Undefined, time=Undefined, **kwds)#
Methods
__init__
([date, dateTime, days, months, ...])copy
([deep, ignore])Return a copy of the object.
from_dict
(dct[, validate])Construct class from a dictionary representation.
from_json
(json_string[, validate])Instantiate the object from a valid JSON string.
resolve_references
([schema])Resolve references in the context of this object's schema or root schema.
to_dict
([validate, ignore, context])Return a dictionary representation of the object.
to_json
([validate, indent, sort_keys, ...])Emit the JSON representation for this object as a string.
validate
(instance[, schema])Validate the instance against the class schema in the context of the rootschema.
validate_property
(name, value[, schema])Validate a property against property schema in the context of the rootschema.