cf.second¶
-
cf.
second
(value)[source]¶ Return a
cf.Query
object for date-time seconds.In this context, any object which has a
second
attribute is considered to be a date-time variable.If value is a
cf.Query
object thencf.second(value)
is equivalent tovalue.addattr('second')
. Otherwisecf.second(value)
is equivalent tocf.eq(value, attr='second')
.See also
cf.year
,cf.month
,cf.day
,cf.hour
,cf.minute
,cf.dteq
,cf.dtge
,cf.dtgt
,cf.dtne
,cf.dtle
,cf.dtlt
Parameters: - value :
Either the value that the second is to be compared with, or a
cf.Query
object for testing the second.
Returns: - out : cf.Query
The query object.
Examples: >>> d = cf.dt(2002, 6, 16, 18, 30, 0) >>> d == cf.second(0) True >>> d == cf.second(cf.le(30)) True >>> d == cf.second(30) False >>> d == cf.second(cf.wi(0, 30)) True