Class: Msf::Util::DotNetDeserialization::Types::Primitives::DateTime

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/msf/util/dot_net_deserialization/types/primitives.rb

Constant Summary collapse

KindEnum =
{
    unspecified: 0,
    utc:         1,
    local:       2
}

Instance Method Summary collapse

Instance Method Details

#getObject



35
36
37
# File 'lib/msf/util/dot_net_deserialization/types/primitives.rb', line 35

def get
  self.ticks
end

#kind_nameObject



43
44
45
# File 'lib/msf/util/dot_net_deserialization/types/primitives.rb', line 43

def kind_name
  KindEnum.key(kind)
end

#set(ticks) ⇒ Object



39
40
41
# File 'lib/msf/util/dot_net_deserialization/types/primitives.rb', line 39

def set(ticks)
  self.ticks = ticks
end