Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Converting Time in String form to a Long
Hello,

Does anyone now how to access the setTimeInMillis method of the Calendar
Interface.
I have a time in the format of HH:MM:SS: which is a string, but I want to
convert it to a long, so I can compare the times to figure out of two times
how far greater or lesser one is.

Thanks,

--
Al



Report this thread to moderator Post Follow-up to this message
Old Post
Al Wilkerson
09-24-04 09:00 AM


Re: Converting Time in String form to a Long
Sorry, I meant from the the java.util.Calendar class.

Al
"Al Wilkerson" <ac527@comcast.net> wrote in message
news:u3N4d.248739$mD.117700@attbi_s02...
>
> Hello,
>
> Does anyone now how to access the setTimeInMillis method of the Calendar
> Interface.
> I have a time in the format of HH:MM:SS: which is a string, but I want to
> convert it to a long, so I can compare the times to figure out of two
times
> how far greater or lesser one is.
>
> Thanks,
>
> --
> Al
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Al Wilkerson
09-24-04 09:00 AM


Re: Converting Time in String form to a Long
"Al Wilkerson" <ac527@comcast.net> writes:

> I have a time in the format of HH:MM:SS: which is a string, but I want to
> convert it to a long,

Use SimpleDateFormat and do getTime() on the Date object you get when
you parse.

Report this thread to moderator Post Follow-up to this message
Old Post
Tor Iver Wilhelmsen
09-24-04 09:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:23 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.