Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2010
    Posts
    22
    Rep Power
    0

    Default Appending Seconds to Time

    Hi,
    Can you please help me in appending the seconds to a time value.

    Like i am receving the time as HH:MM and I need to append the SS to it.

    like 18:35 to 18:35:00

    07:35 to 07:35:00

    Please advice this funstionality.


    both the data types are of type IsoTime type ( XML).

    Thanks.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    Is this a String or some other class we're talking about here?
    Presumably in Java (this being a Java forum and all)?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    IsoTime is not a standard Java class which will greatly limit the help you'll be able to get here. I suggest either reviewing the class's documentation or ask in a forum dedicated to the product.

    Luck

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Tolls View Post
    Is this a String or some other class we're talking about here?
    Presumably in Java (this being a Java forum and all)?
    It is? Darn, I thought it was the collectors' fanclub for paintings of very disappointed aardvarks ...

    kind regards,

    Jos ;-)

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,867
    Rep Power
    8

    Default

    Quote Originally Posted by JosAH View Post
    It is? Darn, I thought it was the collectors' fanclub for paintings of very disappointed aardvarks ...
    Who says it can't be both?

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by KevinWorkman View Post
    Who says it can't be both?
    You must be a politician or are you a disappointed aardark?

    kindest regards

    Jos ;-)

  7. #7
    Join Date
    Sep 2010
    Posts
    22
    Rep Power
    0

    Default

    Hi,
    what I didn't understand what all you are talking about. If some one know the way of doing the problem suggest/help/advice. Don't say all that un necessary things. I just asked how can we add seconds to a time, which I am getting as HH:MM to be (HH:MM:SS).

    Please dont use this great forum for laughing purpose...

    Here I am getting time format as time datatype.

    Thanks,
    Sudhakar.M

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    I did ask you what class we were talking about.

    You still haven't really clarified that.

    Is this a Date object or what?
    What class are we referring to?

  9. #9
    Join Date
    Sep 2010
    Posts
    22
    Rep Power
    0

    Default

    Thanks for reply... yes date object..

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    Right, Date does not have a format.

    How are you displaying your Date?
    What does the code for that look like?

Similar Threads

  1. Replies: 4
    Last Post: 09-09-2010, 11:15 AM
  2. Replies: 3
    Last Post: 04-05-2010, 01:08 PM
  3. Appending
    By selva.bics in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 11-10-2009, 10:49 AM
  4. getting time elapsed in seconds
    By ali_sakar in forum New To Java
    Replies: 3
    Last Post: 03-06-2009, 08:37 AM
  5. measuring time in nano seconds
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-06-2007, 12:11 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
  •