CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How to get the time since 1/1/1970 (like "localtime" in C) ?

    I want to get the number of seconds elapsed since 1/1/1970
    (like "localtime" in C runtime library).



  2. #2
    Join Date
    Nov 1999
    Posts
    2

    Re: How to get the time since 1/1/1970 (like "localtime" in C) ?

    Dim nNumSeconds

    nNumSeconds = DateDiff("s", DateValue("01/01/1970 00:00:00"),Now)


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured