Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
time difference of file versus the current time.
#1
I am working on a project whre i need to manually edit the contents of a file periodically. I was trying to calculate the differnce between .TimeModified and .FromComputerTime.
I got this far but not sure how to return the difference in minutes or hours?

Macro Test
Code:
Copy      Help
Dir d
if d.dir("C:\mjinstalls\ccalertip.txt" 0) ;;if exists
,DATE ft=d.TimeModified
out ft
DateTime ct
ct.FromComputerTime
out ct.ToStr(4)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)