Date: Thu, 28 Mar 2024 07:11:35 -0700 (PDT) Message-ID: <1696106731.193.1711635095027@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_192_956904047.1711635095027" ------=_Part_192_956904047.1711635095027 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A datetime's hour.
Hour =3D SRP_DateT= ime("Hour", Datetime)
The hour component of an OI time.
Parameter | Description |
---|---|
Datetime | A datetime in OI internal format. (= REQUIRED) |
The "Hour" service returns the hour component of an OI datetime. The res= ult is an integer between 0 and 23 with 0 being the midnight hour and 23 be= ing the 11pm hour. If an OI datetime represents March 30, 1978 at 12:41:08p= m, this service would return 12. If the datetime is August 13, 3003 at 4:23= :32pm, this service would return 16. If the given datetime not valid, "" is= returned.
// Get the current hour Hour =3D SRP_DateTime("Hour", DateTime()) // Get the current hour in UTC Hour =3D SRP_DateTime("Hour", SRP_DateTime("Now", 1)) // Get a hard coded datetime's hour Hour =3D SRP_DateTime("Hour", -9519.67241898148) // Parse a datetime's hour Datetime =3D SRP_DateTime("Parse", "Thursday, March 30, 1978 at 12:41:08pm"= , "DDD, MMMM D, YYYY at h:mm:sstt") Hour =3D SRP_DateTime("Hour", Datetime)