Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageSorry, 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 > >
Post Follow-up to this message"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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.