Re: Kind of puzzled about timestamps

2021-03-04 Thread Joshua Judson Rosen
See also: "The Problem with Time and Timezones"  On 3/4/21 10:32 PM, Bruce Labitt wrote: > On 3/4/21 9:56 PM, Joshua Judson Rosen wrote: >> On 3/4/21 7:13 PM, Bruce Labitt wrote: >>> Good point.  I'll check that.  Logging machine was set to local

Re: Kind of puzzled about timestamps

2021-03-04 Thread Bruce Labitt
On 3/4/21 9:56 PM, Joshua Judson Rosen wrote: > On 3/4/21 7:13 PM, Bruce Labitt wrote: >> Good point.  I'll check that.  Logging machine was set to local time EST.  >> But it does have a wireless link, maybe it set itself internally to UT.  >> Thanks for the hint. > You have your code explicitly

Re: Kind of puzzled about timestamps

2021-03-04 Thread Joshua Judson Rosen
On 3/4/21 7:13 PM, Bruce Labitt wrote: > Good point.  I'll check that.  Logging machine was set to local time EST.  > But it does have a wireless link, maybe it set itself internally to UT.  > Thanks for the hint. You have your code explicitly calling a function named `UTC from timestamp'. If

Re: Kind of puzzled about timestamps

2021-03-04 Thread Jerry Feldman
Originally Unix used an epoch time system defined as the number of seconds since January 1 1970. This was stored in a signed 32 bit integer that flips in 2035. On 64 bit Linux systems it has been redefined as 64 bits. Unix systems all use UTC. Linux normally uses UTC as the base, but because of

Re: Kind of puzzled about timestamps

2021-03-04 Thread Bruce Labitt
Weird, it is just the 5 hours between UT and EST.  The files are generated on a non-linux embedded machine. If I create a file on my pc, then the TZ information is present and the time is set.  ls reads it correctly. This time stuff can get confusing.  As you were. On 3/4/21 7:13 PM, Bruce

Re: Kind of puzzled about timestamps

2021-03-04 Thread Jerry Feldman
The time stamps are UTC. The utilities translate them using the standard time utilities -- Jerry Feldman Boston Linux and Unix http://www.blu.org PGP key id: 6F6BB6E7 PGP Key fingerprint: 0EDC 2FF5 53A6 8EED 84D1 3050 5715 B88D 6F6 B B6E7 On Thu, Mar 4, 2021, 7:14 PM Bruce Labitt wrote: >

Re: Kind of puzzled about timestamps

2021-03-04 Thread Bruce Labitt
Good point. I'll check that. Logging machine was set to local time EST. But it does have a wireless link, maybe it set itself internally to UT. Thanks for the hint. On Thu, Mar 4, 2021, 7:05 PM Dana Nowell wrote: > If I'm reading it correctly, it's a 5 hr difference? Local vs gmt? > > > On

Re: Kind of puzzled about timestamps

2021-03-04 Thread Dana Nowell
If I'm reading it correctly, it's a 5 hr difference? Local vs gmt? On Thu, Mar 4, 2021, 6:43 PM Bruce Labitt wrote: > This is an odd question. It involves both python and linux. > > Have a bunch of files in a directory that I'd like like to sort by similar > names and in time order. This

Kind of puzzled about timestamps

2021-03-04 Thread Bruce Labitt
This is an odd question.  It involves both python and linux. Have a bunch of files in a directory that I'd like like to sort by similar names and in time order.  This isn't particularly difficult in python.  What is puzzling me is the modified timestamp returned by python doesn't match whats