×

Discussion Board

Results 1 to 3 of 3

Thread: TTime Parse

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    43

    TTime Parse

    Hello!
    Got some strange error:
    time.Parse(data);
    Gives me KErrGeneral (-2) when parsing "2012-10-29 11:48:34". In documents it's written:

    KErrGeneral indicates that the time or date value is out of range, e.g. if the hour is greater than 23 or if the minute is greater than 59.

    What's wrong here?
    Thanks!

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    43

    Re: TTime Parse

    Well, I've fixed that by changing "2012-10-29 11:48:34" to "2012-10-29 11:48.34".

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: TTime Parse

    Yes, TTime::Parse is a moderately usable method, you have to find what format(s) the current locale settings support.

Similar Threads

  1. TTime::parse problem
    By lokesh_kumar_s in forum Symbian
    Replies: 3
    Last Post: 2009-12-01, 11:54
  2. TTime::Parse() with correct DateFormat
    By giedi1 in forum Symbian
    Replies: 6
    Last Post: 2009-03-14, 23:18
  3. TTime.Parse ambiguity
    By vnleeds in forum Symbian
    Replies: 1
    Last Post: 2007-12-02, 21:24
  4. TTime.Parse and microseconds
    By Kebab300 in forum Symbian
    Replies: 6
    Last Post: 2006-05-09, 10:55
  5. TTime.Parse() language dependent
    By CleanUpClosePushL() in forum Symbian
    Replies: 3
    Last Post: 2006-03-15, 21:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×