×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    TTime::parse problem

    hi
    Code:
    fileTime.Parse(_L("2009/12/30 12:30:20"));
        fileTime.FormatL(fileTimeStr,_L("%D%M%Y%/0%3%/1%2%/2%1%/3 %-B%:0%H%:1%T%:2%S%:3%+B"));
        ShowMessage(_L("fileTimeStr="));
    	ShowMessage(fileTimeStr);
    ShowMessage showing its value as 9898-02-02 06:39:21 am
    i wanted fileTimeStr as "2009/12/30 12:30:20"
    please help
    ---
    Regards
    Lokesh Kumar S.

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: TTime::parse problem

    Hi,

    Refer to "Using TTime in Date & Time Handling" in documentation.
    Try using
    _LIT(KDateString11,"%F%/0%Y%/1%M%/2%D%/3");
    time.FormatL(dateString,KDateString11);
    It will show 2009/12/30
    Similarly add hrs mins secs
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,026

    Re: TTime::parse problem


  4. #4
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: TTime::parse problem


Similar Threads

  1. STLPort namespace issue
    By yickhong in forum Open C/C++
    Replies: 0
    Last Post: 2009-04-09, 08:54
  2. SyncML link problem
    By samuel_ in forum Symbian
    Replies: 4
    Last Post: 2009-03-27, 08:02
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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