-
the easiest way to add/substract java.sql.timestamp objects
hi
is there a way to find out how many day/mins etc two different timestamp objects differ? e.g. today's date and tommorow's, or finding out tommorow's date based on current date?
thx
-
You can to use a Date oblect to convert the timestamp to milliseconds.
You could the calculate date difference by substracting milliseconds and converting
back to yrs.mths.days:hrs:min:sec:ms
For finding next date just add the number of milliseconds for 24 hrs.
eschew obfuscation
Similar Threads
-
By Michael Cole in forum Database
Replies: 2
Last Post: 04-02-2003, 03:06 PM
-
By Michael Cole in forum oracle.general
Replies: 0
Last Post: 02-20-2003, 10:25 PM
-
By Jeff Pipes in forum .NET
Replies: 11
Last Post: 05-15-2002, 10:17 AM
-
By Dave Fleischman in forum Enterprise
Replies: 3
Last Post: 08-18-2000, 01:10 PM
-
By Oliver Lennon in forum Enterprise
Replies: 3
Last Post: 04-18-2000, 12:30 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks