Second#
- class swordfish._swordfishcpp.Second(data: int)#
- class swordfish._swordfishcpp.Second(hour: int, minute: int, second: int)
- class swordfish._swordfishcpp.Second
Represents a Swordfish Second object, initialized in one of three ways: with no arguments, with a Python int value, or with separate ints indicating hour, minute, and second.
- 参数:
data (int, optional) -- A Python int used to initialize the Second object.
hour (int, optional) -- The hour component of the Second object.
minute (int, optional) -- The minute component of the Second object.
second (int, optional) -- The second component of the Second object.
示例
>>> import swordfish as sf >>> sf.data.Second() Second(null) >>> sf.data.Second(10) Second(00:00:10) >>> sf.data.Second(10,20,30) Second(10:20:30)