×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    17

    Create a filename with timestamp as filename

    Hi,

    I want to create a file with timestamp. How can i do that? Thanks in advance!

    Regards
    Kambiz

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Create a filename with timestamp as filename

    this wiki post will give you a hint
    http://wiki.forum.nokia.com/index.ph...ferent_formats

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    17

    Re: Create a filename with timestamp as filename

    Hi again,
    What i ment is that the file i will geneate should have date as a part of filename.

    exp: log270708.txt

    How can i do that. Thanks for your help!

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Create a filename with timestamp as filename

    you can get the current time with thes etwo lines:

    TTime nowTime;
    nowTime.HomeTime();

    and then use TBuf or any other buffer to add the date into the name before creating the file.

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    17

    Re: Create a filename with timestamp as filename

    U will make me happy if you could please give me a exp. Thanks in advance!

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Create a filename with timestamp as filename

    You would make everybody here happy if you would try such basic thing your own and complete the task successfully.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Create a filename with timestamp as filename

    Yes, and its better to try out yourself, since at least for me, doing something is the best way on learning something...

Similar Threads

  1. Trusted Application
    By damien_a in forum Mobile Java General
    Replies: 11
    Last Post: 2012-02-17, 20:49
  2. Not able to create CAknIntegerEdwin/CAknNumericEdwin
    By gpalvia in forum Symbian User Interface
    Replies: 4
    Last Post: 2010-07-19, 09:22
  3. Unable to create file
    By Ajmal in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2008-06-05, 04:39
  4. Replies: 10
    Last Post: 2007-07-02, 06:28
  5. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26

Posting Permissions

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