Marook-Online
* 06.Feb.2012, 15:44 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
22-Dec-2007 04:50
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


The following function expects a UnixTimeWiki as integer and returns the converted date as a string.

Code
GeSHi (vbnet):
  1. Private Function UnixTimeToString(ByVal Timestamp As Integer) As String
  2.  ' init new date with unix epoche 1.1.1980:00:00:00
  3.  Dim dateTime As New Date(1970, 1, 1, 0, 0, 0, 0)
  4.  ' add the timestamp
  5.  dateTime = dateTime.AddSeconds(Timestamp)
  6.  ' create a new strig representing the unixtime
  7.  Dim uDate As String = dateTime.ToShortDateString() + ", " + dateTime.ToShortTimeString()
  8.  ' return the string
  9.  Return uDate
  10. End Function
Created by GeSHI 1.0.7.20
« Last Edit: 22-Dec-2007 04:52 by Marook » Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!