ophelia.util

Functions

ophelia.util.strftime(format, t=None)[source]

Similar to time.strftime, but returns unicode.

Decodes the time representation returned by time.strftime according to the character encoding as determined by the current locale.

format: str or unicode, a time format string t: optional, if given: tuple, datetime.datetime, or datetime.time

If t is omitted, the current time is used. If t is a tuple, it must be a valid time tuple as accepted by time.strftime().

returns unicode

Classes

Inheritance diagram of ophelia.util

class ophelia.util.Namespace(*args, **kwargs)[source]

Bases: dict

Collection of named variables, accessible both as attributes and mapping items.