tlpipe.timestream.ns_cal.datetime¶
-
class
tlpipe.timestream.ns_cal.datetime(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])¶ The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints or longs.
Attributes
dayhourmaxmicrosecondminminutemonthresolutionsecondtzinfoyear-
__init__()¶ x.__init__(...) initializes x; see help(type(x)) for signature
Methods
astimezonetz -> convert to local time in new timezone tz combinedate, time -> datetime with same date and time fields ctimeReturn ctime() style string. dateReturn date object with same year, month and day. dstReturn self.tzinfo.dst(self). fromordinalint -> date corresponding to a proleptic Gregorian ordinal. fromtimestamptimestamp[, tz] -> tz’s local time from POSIX timestamp. isocalendarReturn a 3-tuple containing ISO year, week number, and weekday. isoformat[sep] -> string in ISO 8601 format, YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM]. isoweekdayReturn the day of the week represented by the date. now[tz] -> new datetime with tz’s local day and time. replaceReturn datetime with new specified fields. strftimeformat -> strftime() style string. strptimestring, format -> new datetime parsed from a string (like time.strptime()). timeReturn time object with same time but with tzinfo=None. timetupleReturn time tuple, compatible with time.localtime(). timetzReturn time object with same time and tzinfo. todayCurrent date or datetime: same as self.__class__.fromtimestamp(time.time()). toordinalReturn proleptic Gregorian ordinal. tznameReturn self.tzinfo.tzname(self). utcfromtimestamptimestamp -> UTC datetime from a POSIX timestamp (like time.time()). utcnowReturn a new datetime representing UTC day and time. utcoffsetReturn self.tzinfo.utcoffset(self). utctimetupleReturn UTC time tuple, compatible with time.localtime(). weekdayReturn the day of the week represented by the date. -