class BACnet::Time

Defined in:

bacnet/objects/time.cr

Constant Summary

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 Method Summary

Instance Method Summary

Class Method Detail

def self.bit_fields #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

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.


[View source]
def hour(default : ::Time) #

[View source]
def hour_raw : UInt8 #

def hour_raw=(hour_raw : UInt8) #

def hundredth_raw : UInt8 #

def hundredth_raw=(hundredth_raw : UInt8) #

def minute(default : ::Time) #

[View source]
def minute_raw : UInt8 #

def minute_raw=(minute_raw : UInt8) #

def nanosecond(default : ::Time) #

[View source]
def second(default : ::Time) #

[View source]
def second_raw : UInt8 #

def second_raw=(second_raw : UInt8) #

def timezone : ::Time::Location #

[View source]
def timezone=(timezone : ::Time::Location) #

[View source]
def to_s(io) #

[View source]
def value(date = ::Time.local(@timezone)) #

[View source]