gws.tools.date

gws.tools.date.set_system_time_zone(tz)[source]
gws.tools.date.to_iso(d: datetime.datetime, with_tz='+', sep='T') → str[source]
gws.tools.date.to_iso_date(d: datetime.datetime) → str[source]
gws.tools.date.now() → datetime.datetime[source]
gws.tools.date.now_iso(with_tz='+', sep='T') → str[source]
gws.tools.date.to_utc(d: datetime.datetime) → datetime.datetime[source]
gws.tools.date.from_timestamp(ts) → datetime.datetime[source]
gws.tools.date.utime() → float[source]
gws.tools.date.timestamp() → int[source]
gws.tools.date.timestamp_msec() → int[source]
gws.tools.date.is_date(x) → bool[source]
gws.tools.date.is_datetime(x) → bool[source]
gws.tools.date.from_iso(s: str) → Optional[datetime.datetime][source]
class gws.tools.date.DateFormatter(locale)[source]
format(fmt, d=None)[source]
short
medium
long
class gws.tools.date.TimeFormatter(locale)[source]
format(fmt, d=None)[source]
short
medium
long