Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Translate time

  1. #1
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    IS it possible to translate time from "1056562636" to "dd/mm/yy h:m". if yes can someone tell me?
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    PHP Code:
    $formattedDate strftime("%d/%m/%y %h:%m"1056562636); 

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    or with date()
    PHP Code:
    $formattedDate date("d/m/y h:m"1056562636); 

  6. #5
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    Thank for that, i got it now.
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  7. #6
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    I have another question, can i stop people from using software to download files from my sever?
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  8. #7
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    It wrote sown the correct date, but the time all become 02:06????
    my code like this:
    PHP Code:
    echo date("d/m/y h:m"$mytime); 
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  9. #8
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    Transio! the minute must be "i" not "m",
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  10. #9
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Yes, i is the minute Use .htaccess files for protecting downloads.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  11. #10
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    what is that file and how to make that file?
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:24 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com