class

BACnet::Time

Inherits BinData < Reference < Object

Constants

AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
KLASS_NAME = [BACnet::Time]
PARTS = [{type: "basic", name: hour_raw, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: minute_raw, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: second_raw, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: hundredth_raw, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}] of Nil
REMAINING = [] of Nil
UNSPECIFIED = 255_u8

Class methods

bit_fields
Source

Instance methods

__format__

A group or bit_field captures the endianness at its declaration point, so declaring endian after one would silently leave it system-endian. Fail loudly.

Source
hour(default : ::Time)
Source
hour_raw
hour_raw=(hour_raw : UInt8)
hundredth_raw
hundredth_raw=(hundredth_raw : UInt8)
minute(default : ::Time)
Source
minute_raw
minute_raw=(minute_raw : UInt8)
nanosecond(default : ::Time)
Source
second(default : ::Time)
Source
second_raw
second_raw=(second_raw : UInt8)
timezone
Source
timezone=(timezone : ::Time::Location)
Source
to_s(io)
Source
value(date = ::Time.local(@timezone))
Source