Python Forum
Timestamp of file changes if a share mapped to a server….
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timestamp of file changes if a share mapped to a server….
#26
ok, the timestamp is always displayed by numbers something like this '1679796823.977553'
And I think I do compare the "mtime" var which is the timestamp of each file against the "timestamp filter" that was created with the:
#start_time = datetime.combine(date.today(), time(), tzinfo=timezone("US/Pacific"))
start_time = datetime.combine(date.today(), time(), tzinfo=timezone("Asia/Kuala_Lumpur"))
end_time = start_time + timedelta(hours=24)
print(start_time, end_time)
   
# Convert to timestamps.
start_time = start_time.timestamp()
end_time = end_time.timestamp()
print(start_time, end_time)
it seems the logic is sound...
I'm comparing the "timestamp filter" localized for the target timezone.
Right?
Why I'm failing, I'm comparing the same time format that is UTC....

Sorry about this, I did not mean to give you a hard time!
Thank you.
Reply


Messages In This Thread
RE: Timestamp of file changes if a share mapped to a server…. - by tester_V - Jul-02-2023, 05:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to Remote Server to read contents of a file ChaitanyaSharma 1 402 May-03-2024, 07:23 AM
Last Post: Pedroski55
  Trying to access excel file on our sharepoint server but getting errors cubangt 0 910 Feb-16-2023, 08:11 PM
Last Post: cubangt
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,308 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  access share attributed among several class methods drSlump 0 1,130 Nov-18-2021, 03:02 PM
Last Post: drSlump
  |SOLVED] Glob JPGs, read EXIF, update file timestamp? Winfried 5 2,648 Oct-21-2021, 03:29 AM
Last Post: buran
  How to take the tar backup files form remote server to local server sivareddy 0 2,009 Jul-14-2021, 01:32 PM
Last Post: sivareddy
  Move file from one folder to another folder with timestamp added end of file shantanu97 0 2,580 Mar-22-2021, 10:59 AM
Last Post: shantanu97
  How to share a numpy array between 2 processes on Windows? qstdy 0 2,223 Jan-29-2021, 04:24 AM
Last Post: qstdy
  Access Network SMB Share on a NAS deltapy 2 9,364 Oct-31-2020, 09:14 AM
Last Post: deltapy
  Multiprocessing share variable catosp 0 2,210 Jul-15-2020, 10:45 AM
Last Post: catosp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020