Converting Time as a string to a Long

From: Al Wilkerson (ac527_at_comcast.net)
Date: 09/24/04


Date: Fri, 24 Sep 2004 04:22:24 GMT

Hello,

Does anyone now how to access the setTimeInMillis method of the Calendar
Class. 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


Relevant Pages

  • Re: Parsing IETF standard date format.
    ... I am trying to use the DateFormat class to parse a string in that format ... UNTIL YOU CONVERT IT TO A STRING. ... > If all of the Calendar functionality was in Date You'd have to have a way to set ... > That is the intent of DateFormat and Calendars. ...
    (comp.lang.java.programmer)
  • Re: Parsing IETF standard date format.
    ... I am trying to use the DateFormat class to parse a string in that format ... UNTIL YOU CONVERT IT TO A STRING. ... If all of the Calendar functionality was in Date You'd have to have a way to set ... That is the intent of DateFormat and Calendars. ...
    (comp.lang.java.programmer)
  • Converting Time in String form to a Long
    ... Does anyone now how to access the setTimeInMillis method of the Calendar ... I have a time in the format of HH:MM:SS: which is a string, ...
    (comp.lang.java.help)
  • Re: from String to DATE format?
    ... Toro wrote: ... "DATE format" doesn't tell us anything about your goal. ... Calendar, or GregorianCalendar, or Date object instance, initialized to the ... string to another string, with different formatting? ...
    (comp.lang.java.help)
  • Re: Date format detection
    ... Specifies the locale for which the date string is to be formatted. ... date format for this locale. ... the system default-date format for the specified locale. ... be enclosed within single quotation marks in the date format picture. ...
    (borland.public.delphi.thirdpartytools.general)