×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    48

    TTime.Parse ambiguity

    I've checked the usage of TTime.Parse in the S60 SDK help and found the following:

    The date and its components may take different forms:
    ....
    2 European (DD/MM/YYYY), American (MM/DD/YYYY) and Japanese (YYYY/MM/DD) date formats are supported.
    My question: how does TTime.Parse know whether I'm using European or American standard? TTime.Parse does not provide any parameter to specify this.

    Thank you.

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

    Re: TTime.Parse ambiguity

    The phone obviously knows what you have set as your location. And if you would have read just a bit beyond, you would have found TLocale, which
    Quote Originally Posted by SDK Help
    TLocale()

    Default constructor.

    It constructs the object with the system's locale settings.
    and
    DateFormat()

    Gets the date format.
    then
    TDateFormat

    EDateAmerican
    EDateEuropean
    EDateJapanese

Similar Threads

  1. TTime.Parse and microseconds
    By Kebab300 in forum Symbian
    Replies: 6
    Last Post: 2006-05-09, 10:55
  2. 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
  •  
×