ONVIF::...DateTime(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

πŸ’– 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:

  • DateTimeType
  • DaylightSavings
  • TimeZone
  • UTCDateTime
  • LocalDateTime
  • Extension

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