Minute#

class swordfish._swordfishcpp.Minute(data: int)#
class swordfish._swordfishcpp.Minute(hour: int, minute: int)
class swordfish._swordfishcpp.Minute

Represents a Swordfish Minute object, initialized in one of three ways: with no arguments, with a Python int value, or with two ints indicating hour and minute.

Parameters:
  • data (int, optional) – A Python int used to initialize the Minute object.

  • hour (int, optional) – The hour component of the Minute object.

  • minute (int, optional) – The minute component of the Minute object.

Examples

>>> import swordfish as sf
>>> sf.data.Minute()
Minute(null)
>>> sf.data.Minute(20)
Minute(00:20m)
>>> sf.data.Minute(11, 50)
Minute(11:50m)
NULL_VALUE: Minute#