As my answer indicated, in z/OS it is a console command "D ETR" which gives
much the same info as lsstp.  Lots of ways for a program to issue that
command and get the result.  I don't know of any callable interface for the
time service, and some of the management of timezone is in the HMC, you
might be able to access using BCPii.

As for the TIME macro, see below.  For Gil's last question about converting
a timestamp stored yesterday, this is done by the STCKCONV macro provided
by z/OS.
TIME macro with STCK gives you the raw time
TIME macro with ZONE=UTC includes the leap second offset
TIME macro with ZONE=LT includes both the leap second offset and the
timezone offset


On Mon, Mar 13, 2023 at 3:17 PM Support, DUNNIT SYSTEMS LTD. <
[email protected]> wrote:

> Hi Attila,
>
> >> For leap seconds z/OS provides the value in field CVTLSO.
>
> That I know. But what we can't seem to get under z/OS is some other juicy
> info which the Linux lsstp command returns. Here's the example from the
> lsstp doc:
>
> # lsstp
> STP online:            yes
> CTN ID:                STPM46
> CTN type:              STP-only
> Stratum:               1
> Timing mode:           STP
> Timing state:          Synchronized
> DST offset:            60
> Timezone offset:       60
> Time offset:           120
> Active leap seconds:   27
> Scheduled leap second: -
>
> What I would especially like to be able to know under z/OS are the
> following timer values:
>
> DST offset - The Daylight Savings Time (DST) offset relative to UTC in
> minutes.
>
> And what's missing - even from lsstp - is the date and time when switching
> to/from DST, i.e., the timezone setting, in the STP server, if it's set up
> to auto-change the clock in the spring and fall.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to