04.30.09
difference
You should not ever have to figure this out: the difference between the Unix and Visual Basic epochs is 2212147696.
This will come in handy if you ever find yourself in a position where you need to call VB methods from Perl, and then process the date in Perl. I, for example, find myself compelled to use the COM/VB API of a vendor’s product to extract log data and stuff (really, copy) into a tracking database. The database is supported by a Perl module, making it easier to process all the data. I had no inkling to rewrite (and then maintain) it in Visual Basic, and time/date logic is an important part of the requirements.
So that’s it. The Unix epoch is January 1, 1970 and the Visual Basic epoch is January 1, 100. Perl’s DateTime and Time::Local modules do not handle the year 100 well, so one cannot simply get a Unix time in seconds for that date.
As far as I can tell, this fact is documented nowhere else.








