class BACnet::Time

Defined in:

bacnet/objects/time.cr

Constant Summary

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

Macro Summary

Instance Method Summary

Class Method Detail

def self.bit_fields #

[View source]

Macro Detail

macro ba_cnet_apdu_indicator(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_bit_string(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_date(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_npdu(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_npdu_destination(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_npdu_source(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_object_identifier(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_property_identifier(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ba_cnet_time(name, onlyif = nil, verify = nil, value = nil) #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[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 value(date = ::Time.local(@timezone)) #

[View source]