Home | Trees | Indices | Help |
|
---|
|
S3 Date/Time Toolkit
Copyright: 2015-2019 (c) Sahana Software Foundation
License: MIT
Requires: gluon
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Classes | |
S3DateTime Toolkit for date+time parsing/representation |
|
S3Calendar Calendar Base Class (implementing the Gregorian Calendar) |
|
S3DateTimeParser Date/Time Parser for non-Gregorian calendars |
|
S3DateTimeFormatter Date/Time Formatter for non-Gregorian calendars |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
ISOFORMAT = "%Y-%m-%dT%H:%M:%S" ISO 8601 Combined Date+Time format |
Function Details |
Parse a date/time string according to the given format.
|
Format a datetime object according to the given format.
|
Convert date/time string in ISO-8601 format into a datetime object
Note: this has "iso" in its name for consistency reasons, but can actually read a variety of formats |
Convert a datetime object into a ISO-8601 formatted string, omitting microseconds
|
Get a datetime object for the same date/time as the datetime object, but in UTC
|
Get the current UTC offset for the client |
Return an absolute datetime for a relative date/time expression;
|
Variables Details |
ISOFORMATISO 8601 Combined Date+Time format
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:49 2019 | http://epydoc.sourceforge.net |