ONVIF::...DateTime(3)
π ONVIF::...DateTime(3) β the User Contributed Perl Documentation moment π
okay bestie, so this is a page out of the ONVIF Perl docs, and honestly? it's giving "I'm a data type class and I know it." let's get into it π«Ά
β¨ NAME β¨
ONVIF::Media::Types::SystemDateTime β say it with me, it's a whole vibe π
π¦ DESCRIPTION π¦
so basically: this is a Perl data type class for the XML Schema defined complexType SystemDateTime, and it lives in the namespace http://www.onvif.org/ver10/schema. no cap, that's the whole address.
and what does it do? it's the general date time information returned by the GetSystemDateTime method. that's it, that's the job. it holds the time stuff and it holds it well. β°β¨
πΈ PROPERTIES πΈ
these are the properties you can get at and set using the get_PROPERTY / set_PROPERTY methods. yes, that's the pattern, get and set, iconic behavior:
DateTimeTypeDaylightSavingsTimeZoneUTCDateTimeLocalDateTimeExtension
lowkey a full roster, and every single one of them made the cut π
π₯ METHODS π₯
π new
Constructor bestie! the constructor. this is where you build the thing. the following data structure may be passed to new() β and I'm putting the whole thing right here, character for character, because I would never mess with your code:
{ # ONVIF::Media::Types::SystemDateTime
DateTimeType => $some_value, # SetDateTimeType
DaylightSavings => $some_value, # boolean
TimeZone => { # ONVIF::Media::Types::TimeZone
TZ => $some_value, # token
},
UTCDateTime => { # ONVIF::Media::Types::DateTime
Time => { # ONVIF::Media::Types::Time
Hour => $some_value, # int
Minute => $some_value, # int
Second => $some_value, # int
},
Date => { # ONVIF::Media::Types::Date
Year => $some_value, # int
Month => $some_value, # int
Day => $some_value, # int
},
},
LocalDateTime => { # ONVIF::Media::Types::DateTime
Time => { # ONVIF::Media::Types::Time
Hour => $some_value, # int
Minute => $some_value, # int
Second => $some_value, # int
},
Date => { # ONVIF::Media::Types::Date
Year => $some_value, # int
Month => $some_value, # int
Day => $some_value, # int
},
},
Extension => { # ONVIF::Media::Types::SystemDateTimeExtension
},
},
look at that nesting. the way UTCDateTime and LocalDateTime are literally twins, both holding a Time (with Hour, Minute, Second, all int) and a Date (with Year, Month, Day, all int)... siblings fr fr ππ and Extension is just sitting there, a SystemDateTimeExtension with nothing inside, main character energy of an empty hash. we respect it. π
also don't forget TimeZone has a TZ which is a token, and DaylightSavings is a boolean, and DateTimeType is a SetDateTimeType. all typed, all accounted for, no details lost bestie π§
β AUTHOR β
Generated by SOAP::WSDL β that's the origin story, that's who made it happen π«
and that's the page!! π¦π no notes, ate and left no crumbs. this doc came from perl v5.42.3 and is dated 1980-01-01 (yes really, the date is a whole mood), filed under ONVIF::...DateTime(3). go forth and set your system date time with confidence, bestie ππ
π¦ where this page comes from
- nixpkgs unstable: zoneminder 1.38.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms