DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Kyrathasoft How Long Since? (my 2nd Coding Snacks fulfillment)  (Read 17,636 times)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
How Long Since? is a tool for finding the time that has elapsed since a particular date-time; you set the name of the event, its description, and the exact date and time on which the event occurred. Clicking a given event in the listbox, you'll be presented with time elapsed since that date. This value updates each second. You can delete a particular item by double-clicking it in the listbox. When entering the time component of the DateTime of an event you're about to save, simply enter the time as it would be in the local time used by your PC. The program will convert this to UTC, and any items in the listbox that you click upon will show the UTC version of the time.



click to download
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

« Last Edit: June 19, 2016, 02:39 PM by kyrathaba »

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Kyrathasoft How Long Since?
« Reply #1 on: January 20, 2012, 02:46 AM »
New version prevents illegal characters from being used for the short description, since the short description is used as a file-name when a historical event is saved to disk.

Also, be aware that the conversion of the time from local PC time to UTC can have the effect of shifting the day's date forward 1 day. For example, if you entered December 28, 1970 11:57 PM and saved it while running the program on a PC set to Central Standard Time, when you clicked on the saved item in the listbox, you'll see the Date and Time change to Dec. 29, 1970 5:57 AM.  Same moment in history, but the shift occurs because we've converted to UTC.

Also, be aware that one year is actually 365.25 days, which is why every 4 years is a Leap Year, and adds a 29th day to February.  So if you're watching the one-year-elapsed-time mark arrive on one of your events, you're going to see this:

[attach]
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

« Last Edit: January 20, 2012, 01:51 PM by kyrathaba »

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Kyrathasoft How Long Since? (my 2nd Coding Snacks fulfillment)
« Reply #2 on: January 20, 2012, 08:58 PM »
Newest version available for download is v1.0.0.3, and adds the ability to import Historical Event files (*.hevnt). The key combination Ctrl-I brings up the Import file-open dialog.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Kyrathasoft How Long Since? (my 2nd Coding Snacks fulfillment)
« Reply #3 on: January 21, 2012, 05:17 PM »
Newest version, 1.0.0.4 adds the ability to edit an existing historical event (i.e., one already shown in the listbox). Just change the long description, date, and time to your desired values, then right-click the item in the listbox and click the menu item to save your changes to file.

download newest version
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Kyrathasoft How Long Since? (my 2nd Coding Snacks fulfillment)
« Reply #4 on: January 21, 2012, 11:04 PM »
Newest version is 1.0.0.5. Be sure that the version you have installed is at least v1.0.0.5, because as of this version, the program checks for an update at startup.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Kyrathasoft How Long Since? (my 2nd Coding Snacks fulfillment)
« Reply #5 on: January 22, 2012, 01:00 AM »
New version, 1.0.0.6, can add two times together:

[attach]
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Kyrathasoft How Long Since? (my 2nd Coding Snacks fulfillment)
« Reply #6 on: February 04, 2012, 10:50 PM »
v1.0.0.7 corrects the title of secondary form from "Add Two Times Together" to "Add Two Timespans Together".
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Original address: https://www.donationcoder.com/forum/index.php?topic=29644.0