Re: [CentOS] Date question

2021-02-18 Thread Jerry Geis
On Wed, Feb 17, 2021 at 1:57 PM Jerry Geis wrote: > SO from the man page on date I can do > > current=`TZ=":America/Indianapolis" date` > echo $current > current=`TZ=":America/Los_Angeles" date ` > echo $current > > And I get correct data. LA is 3 hours earlier. But doing this: > >

Re: [CentOS] Date question

2021-02-17 Thread Jonathan Billings
On Wed, Feb 17, 2021 at 01:57:50PM -0500, Jerry Geis wrote: > > SO from the man page on date I can do > > current=`TZ=":America/Indianapolis" date` > echo $current > current=`TZ=":America/Los_Angeles" date ` > echo $current > > And I get correct data. LA is 3 hours earlier. But doing this: > >

Re: [CentOS] Date question

2021-02-17 Thread Chris Schanzle via CentOS
On 2/17/21 1:57 PM, Jerry Geis wrote: > SO from the man page on date I can do > > current=`TZ=":America/Indianapolis" date` > echo $current > current=`TZ=":America/Los_Angeles" date ` > echo $current > > And I get correct data. LA is 3 hours earlier. But doing this: > >

[CentOS] Date question

2021-02-17 Thread Jerry Geis
SO from the man page on date I can do current=`TZ=":America/Indianapolis" date` echo $current current=`TZ=":America/Los_Angeles" date ` echo $current And I get correct data. LA is 3 hours earlier. But doing this: current=`TZ=":America/Indianapolis" date +%s` echo $current