pynn_brainscales.brainscales2.recording.datetime
-
class
pynn_brainscales.brainscales2.recording.
datetime
(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]]) Bases:
datetime.date
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.
-
__init__
() Initialize self. See help(type(self)) for accurate signature.
Methods
tz -> convert to local time in new timezone tz
date, time -> datetime with same date and time fields
Return ctime() style string.
Return date object with same year, month and day.
Return self.tzinfo.dst(self).
string -> datetime from datetime.isoformat() output
timestamp[, tz] -> tz’s local time from POSIX timestamp.
[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
now
()Returns new datetime object representing current time local to tz.
Return datetime with new specified fields.
string, format -> new datetime parsed from a string (like time.strptime()).
Return time object with same time but with tzinfo=None.
Return POSIX timestamp as float.
Return time tuple, compatible with time.localtime().
Return time object with same time and tzinfo.
Return self.tzinfo.tzname(self).
Construct a naive UTC datetime from a POSIX timestamp.
Return a new datetime representing UTC day and time.
Return self.tzinfo.utcoffset(self).
Return UTC time tuple, compatible with time.localtime().
Attributes
-
astimezone
() tz -> convert to local time in new timezone tz
-
combine
() date, time -> datetime with same date and time fields
-
ctime
() Return ctime() style string.
-
date
() Return date object with same year, month and day.
-
dst
() Return self.tzinfo.dst(self).
-
fold
-
fromisoformat
() string -> datetime from datetime.isoformat() output
-
fromtimestamp
() timestamp[, tz] -> tz’s local time from POSIX timestamp.
-
hour
-
isoformat
() [sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM]. sep is used to separate the year from the time, and defaults to ‘T’. timespec specifies what components of the time to include (allowed values are ‘auto’, ‘hours’, ‘minutes’, ‘seconds’, ‘milliseconds’, and ‘microseconds’).
-
max
= datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
-
microsecond
-
min
= datetime.datetime(1, 1, 1, 0, 0)
-
minute
-
now
() Returns new datetime object representing current time local to tz.
- tz
Timezone object.
If no tz is specified, uses local timezone.
-
replace
() Return datetime with new specified fields.
-
resolution
= datetime.timedelta(microseconds=1)
-
second
-
strptime
() string, format -> new datetime parsed from a string (like time.strptime()).
-
time
() Return time object with same time but with tzinfo=None.
-
timestamp
() Return POSIX timestamp as float.
-
timetuple
() Return time tuple, compatible with time.localtime().
-
timetz
() Return time object with same time and tzinfo.
-
tzinfo
-
tzname
() Return self.tzinfo.tzname(self).
-
utcfromtimestamp
() Construct a naive UTC datetime from a POSIX timestamp.
-
utcnow
() Return a new datetime representing UTC day and time.
-
utcoffset
() Return self.tzinfo.utcoffset(self).
-
utctimetuple
() Return UTC time tuple, compatible with time.localtime().
-