Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
time difference of file versus the current time.
#2
Macro Macro1821
Code:
Copy      Help
Dir d
if d.dir("C:\windows\*.txt" 0) ;;if exists
,DateTime ft=d.TimeModified ;;this function returns value in FILETIME format, which is also used by DateTime
out ft.ToStr(4)
DateTime ct
ct.FromComputerTime
out ct.ToStr(4)
long diff=ct-ft
out TimeSpanToStr(diff)
out F"{diff/10000000/60} minutes"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)