ONVIF::...DateTime(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

✨ ONVIF::...DateTime(3) ✨

okay so bestie, we're deep in the ONVIF::PTZ::Types corner of the Perl universe today β€” this page lives in the User Contributed Perl Documentation, so you already know it's giving community-crafted realness πŸ’…


🌸 NAME 🌸

ONVIF::PTZ::Types::SystemDateTime β€” literally exactly what it says on the tin, no cap 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a Perl data type class for the XML Schema defined complexType SystemDateTime from the namespace http://www.onvif.org/ver10/schema. iconic behaviour tbh ✨

And what is it for? It's the general date time information returned by the GetSystemDateTime method. that's the whole vibe β€” date time info, general, returned by that method. periodt πŸ’–

πŸŽ€ PROPERTIES πŸŽ€

these are the properties you can access using the get_PROPERTY / set_PROPERTY methods. six of them. a little matched set. we love a group of six πŸ‘‘

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

πŸ”₯ METHODS πŸ”₯

⭐ new

Constructor ✨ the following data structure may be passed to new():

{ # ONVIF::PTZ::Types::SystemDateTime
  DateTimeType => $some_value, # SetDateTimeType
  DaylightSavings =>  $some_value, # boolean
  TimeZone =>  { # ONVIF::PTZ::Types::TimeZone
    TZ =>  $some_value, # token
  },
  UTCDateTime =>  { # ONVIF::PTZ::Types::DateTime
    Time =>  { # ONVIF::PTZ::Types::Time
      Hour =>  $some_value, # int
      Minute =>  $some_value, # int
      Second =>  $some_value, # int
    },
    Date =>  { # ONVIF::PTZ::Types::Date
      Year =>  $some_value, # int
      Month =>  $some_value, # int
      Day =>  $some_value, # int
    },
  },
  LocalDateTime =>  { # ONVIF::PTZ::Types::DateTime
    Time =>  { # ONVIF::PTZ::Types::Time
      Hour =>  $some_value, # int
      Minute =>  $some_value, # int
      Second =>  $some_value, # int
    },
    Date =>  { # ONVIF::PTZ::Types::Date
      Year =>  $some_value, # int
      Month =>  $some_value, # int
      Day =>  $some_value, # int
    },
  },
  Extension =>  { # ONVIF::PTZ::Types::SystemDateTimeExtension
  },
},

like, look at that nesting. UTCDateTime and LocalDateTime are lowkey the same structure twice β€” Time with Hour, Minute, Second, and Date with Year, Month, Day, all int. the way they said "do it again but for local" πŸ˜­πŸ’€ but honestly? consistent. we respect it 🧚

and Extension is just an empty ONVIF::PTZ::Types::SystemDateTimeExtension in there, doing its little thing, vibing with zero fields 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL β€” not a human, a generator. the machine wrote it so you don't have to 🩷


fr fr bestie, keep every one of those property names and nested keys exactly as written β€” the XML schema does not accept your creative interpretation, no matter how cute it is πŸ™ˆ

and that's the whole page! brought to you by perl v5.42.3 and dated 1980-01-01 β€” yes the date is older than everyone reading this, it's fine, it's vintage, it's aesthetic πŸŽ€πŸ’œ

πŸ“¦ where this page comes from