Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 02, 2016, 10:44:40 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Difference between two files' time/date  (Read 3832 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 315
    • View Profile
    • Donate to Member
Difference between two files' time/date
« on: August 26, 2013, 05:41:30 PM »
Here's the idea:  Window comes up with two sub-windows on left and right.

Drag a file to the inside left sub-window.

Drag another file to the inside right sub-window.

Click Okay.

Up pops amount of time (absolute) between the two files.  ('Modified' file time/date preferred.)

Thanks!
Nicholas Kormanik


c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 585
    • View Profile
    • VDSFreak
    • Donate to Member
Re: Difference between two files' time/date
« Reply #1 on: August 27, 2013, 12:01:37 PM »
I think I can help you out. I should have something for you either later today or tomorrow.  ;)
http://VDSFreak.com
Follow me on Tumblr.com to stay up to date on updates and new software!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 585
    • View Profile
    • VDSFreak
    • Donate to Member
Re: Difference between two files' time/date
« Reply #2 on: August 27, 2013, 01:52:47 PM »
Just to make sure I am clear, when you say absolute, you me how much time between the file dates in days, hours, etc., correct?
http://VDSFreak.com
Follow me on Tumblr.com to stay up to date on updates and new software!

nkormanik

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 315
    • View Profile
    • Donate to Member
Re: Difference between two files' time/date
« Reply #3 on: August 27, 2013, 04:51:50 PM »
Fantastic, c.gingerich.  Yes, by "absolute" I mean it shouldn't matter which file is placed first or second, either can be newer or older, or the same.

Without absolute value, if newer file is placed first, the result would be a negative number.

I see no problem giving a negative number, if it makes programming any easier.  But I'm guessing most people would like to simply see a positive number (absolute value).

By the way, regarding my request here, I am primarily interested in the TIME difference between the two files.  In a single folder (subdirectory) output is being generated -- 16,000 files -- the whole process takes around three hours.  I'd like to be able to see that total time taken by using such a program as I request -- put in the first-created file, and the last-created file, press enter, presto, roughly total time of the entire process.

There is an initial file in that folder that is from a "pre-process," with an earlier time/date.  So simply grabbing the earliest date and the most recent date wouldn't give the desired answer.

Thanks a bunch!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 585
    • View Profile
    • VDSFreak
    • Donate to Member
Re: Difference between two files' time/date
« Reply #4 on: August 28, 2013, 09:38:46 AM »
Here ya go. I hope it is what you requested. http://starpunch.blogspot.com/2013/08/comptime.html

Run CompTime.exe, drag and drop one file at a time (or browse for files) and the time difference will be automatically calculated and show in status bar at the botom of the window. You can keep changing the files by dropping or selecting and the difference will be automatically calculated each time. The time difference will be displayed in HH:MM:SS format only up to 24 hours difference in time.





http://VDSFreak.com
Follow me on Tumblr.com to stay up to date on updates and new software!
« Last Edit: August 29, 2013, 08:36:39 AM by c.gingerich, Reason: Final update... ? »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,405
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Difference between two files' time/date
« Reply #5 on: August 28, 2013, 10:31:07 AM »
Since one might want to compare many files, it would be nice to not have to press a button and get a modal result.  I would think it would be preferable to have it autocalculate any time there are two files ready to be compared, and let user drag and drop to replace either.

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 585
    • View Profile
    • VDSFreak
    • Donate to Member
Re: Difference between two files' time/date
« Reply #6 on: August 28, 2013, 10:33:02 AM »
I didn't see your name on the original request. LOL  ;D

Sure I can do that, good idea.  :Thmbsup:

I'll try to do that today..... DONE!
http://VDSFreak.com
Follow me on Tumblr.com to stay up to date on updates and new software!
« Last Edit: August 28, 2013, 10:56:07 AM by c.gingerich »

nkormanik

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 315
    • View Profile
    • Donate to Member
Re: Difference between two files' time/date
« Reply #7 on: August 28, 2013, 06:00:07 PM »
Outstanding, c.gingerich.  Even better than what I had in mind.  A really useful tool.

Hope others, too, will be able to find this and put it to use.

Thanks so much!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 585
    • View Profile
    • VDSFreak
    • Donate to Member
Re: Difference between two files' time/date
« Reply #8 on: August 28, 2013, 09:09:37 PM »
Thank you. I'm very happy you like it and it works the way (or better ;-) ) than you wanted! You are very welcome.
http://VDSFreak.com
Follow me on Tumblr.com to stay up to date on updates and new software!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 585
    • View Profile
    • VDSFreak
    • Donate to Member
Re: Difference between two files' time/date
« Reply #9 on: August 29, 2013, 08:36:04 AM »
Made an update to CompTime. After using it a bit I wanted the time difference to be shown larger so I increased the text size for easier reading. I also created a post for it on my site. You can download the most current version here. http://starpunch.blogspot.com/2013/08/comptime.html
http://VDSFreak.com
Follow me on Tumblr.com to stay up to date on updates and new software!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,405
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Difference between two files' time/date
« Reply #10 on: August 29, 2013, 09:20:56 AM »
Just my normal reminder that if you appreciate the coding of someone on the site, you might consider sending them a donation (just click the gold coin at the bottom right under their name on the left).

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
Re: Difference between two files' time/date
« Reply #11 on: August 30, 2013, 07:14:43 AM »
Just my normal reminder that if you appreciate the coding of someone on the site, you might consider sending them a donation (just click the gold coin at the bottom right under their name on the left).

Understood mouser http://img101.imageshack.us/img101/7251/besotene2.gif
Difference between two files' time/date
http://img101.imageshack.us/img101/7251/besotene2.gif
Difference between two files' time/date
http://img101.imageshack.us/img101/7251/besotene2.gif
Difference between two files' time/date