DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to translate Unix timestamp to readable Date

  1. #1
    nicolas Guest

    How to translate Unix timestamp to readable Date


    Hello,
    Hi nicolas and i'll expose you my probleme.
    The input file that my application "read",contain
    fields which type are date and the values are long integer
    since this file provided by a UNIX PlatForm. Moreover I use
    the Visual basic to developp my application.
    That 's why, I look for a function , may be in
    the windows API to translate my UNIX date to readable date

    Thanks for you help

    Post Scriptum:I hope that you understand because is
    very approximative.

  2. #2
    Douglas J. Steele Guest

    Re: How to translate Unix timestamp to readable Date

    Unix timestamps are usually the number of seconds since midnight, Jan 1,
    1970. That means that you can convert them to VB dates using DateAdd("s",
    NumberOfSeconds, #1/1/1970#)

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele


    "nicolas" <nicomarie@wanadoo.fr> wrote in message
    news:3defced1$1@tnews.web.devx.com...
    >
    > Hello,
    > Hi nicolas and i'll expose you my probleme.
    > The input file that my application "read",contain
    > fields which type are date and the values are long integer
    > since this file provided by a UNIX PlatForm. Moreover I use
    > the Visual basic to developp my application.
    > That 's why, I look for a function , may be in
    > the windows API to translate my UNIX date to readable date
    >
    > Thanks for you help
    >
    > Post Scriptum:I hope that you understand because is
    > very approximative.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center