🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14741

Using Delta Times

#14741
From: Bob Byron
Date: Thu, 05 Aug 1999 00:00
19 lines
1380 bytes
I need to record relative date/times as opposed to absolute date/times.
Instead of recording "10-Jan-1999", I need to record 45 days 5 hours 10
minutes.  So, what is the best way to record a time of that nature?  Would
the Date functions support something along that lines?  I know I can write a
custom class to accomplish what I want, however, I don't want to reinvent
the wheel.  Also, I could use the number of milliseconds, and probably will,
but that brings into question how to accurately represent 1 year, when you
consider leap years.  Representing a year in milliseconds changes based on
whether or not you have a leap year.

Any advice would be appreciated.

By the way, I would probably prefer to add this to a Java.lang Usenet group,
but don't have access to a Usenet server for those forums.  Does anyone have
any recommendations there?

Thanks,
Bob Byron
RAD Systems, Inc.
Technical Details
Message-ID: <7ocidf$rm74@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6050dfab849b7a2f,start
X-Google-Attributes: gidf74b3,public
From: "Bob Byron" <forums.inprise.com@radit.com>
Subject: Using Delta Times
Date: 1999/08/05
Message-ID: <7ocidf$rm74@forums.borland.com>
X-Deja-AN: 509258184
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: RAD Systems, Inc.
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language