Package s3 :: Module s3datetime :: Class S3DateTimeFormatter
[frames] | no frames]

Class S3DateTimeFormatter

source code

object --+
         |
        S3DateTimeFormatter

Date/Time Formatter for non-Gregorian calendars

Instance Methods
 
__init__(self, calendar)
Constructor
source code
 
render(self, timetuple, dtfmt)
Render a timetuple as string according to the given format
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, calendar)
(Constructor)

source code 

Constructor

Parameters:
  • calendar - the calendar
Overrides: object.__init__

render(self, timetuple, dtfmt)

source code 

Render a timetuple as string according to the given format

Parameters:
  • timetuple - the timetuple (y, m, d, hh, mm, ss)
  • dtfmt - the date/time format (string)

To Do: support day-of-week options