View Full Version : Time < 1940
how to change time in windows XP, I want to change the year to 1940, I
changed the date in the Bios to 1940, but when Windows comes up it gives an
error and it will not take the date from Bios. There are some websites that
have an expiration date on the HTML code dated 1949, when I save them
Bookmark to view off line the next day it has deleted I have to go back to
the website.
David Candy
May 13th 03, 05:52 PM
The PC was developed in 1980. While XP handles dates from 1601 to the 300th century (that will be a party) all functions, command prompt, programming calls adhere to the original PC standard. EG Fat can't store dates prior to 1980.
However the API can change it. Here it's now 14/5/1940 (and it even displays in dialogs though any attempt will put it back to a minimun of 1980).
I've attached a program that simply sets the date to today but in 1940 (but I've changed my mind - I'll make it 01/01/40).
The file is attached. There are probably good reasons that windows makes it difficult to change time, a/ no computer (digital anyway - they had analog computers) was built then, fat file systems can't handle it, most BIOSs can't handle it, all legacy programs can't handle it. 1980 is a magical date for PCs.
--
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Vik" ==> wrote in message ...
> how to change time in windows XP, I want to change the year to 1940, I
> changed the date in the Bios to 1940, but when Windows comes up it gives an
> error and it will not take the date from Bios. There are some websites that
> have an expiration date on the HTML code dated 1949, when I save them
> Bookmark to view off line the next day it has deleted I have to go back to
> the website.
>
>
David Candy
May 13th 03, 06:31 PM
Here's the source code. By the way it is 01/01/1940 at the current time =
in GMT. So here it shows as 02/01/1940 local time.
Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Private Declare Function SetSystemTime Lib "kernel32" (lpSystemTime As =
SYSTEMTIME) As Long
Private Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As =
SYSTEMTIME)
Sub Main()
Dim SysTime As SYSTEMTIME
GetSystemTime SysTime
SysTime.wDay =3D 1
SysTime.wMonth =3D 1
SysTime.wYear =3D 1940
ret =3D SetSystemTime(SysTime)
End Sub
--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"David Candy" > wrote in message =
...
The PC was developed in 1980. While XP handles dates from 1601 to the =
300th century (that will be a party) all functions, command prompt, =
programming calls adhere to the original PC standard. EG Fat can't store =
dates prior to 1980.
However the API can change it. Here it's now 14/5/1940 (and it even =
displays in dialogs though any attempt will put it back to a minimun of =
1980).
I've attached a program that simply sets the date to today but in 1940 =
(but I've changed my mind - I'll make it 01/01/40).
The file is attached. There are probably good reasons that windows makes =
it difficult to change time, a/ no computer (digital anyway - they had =
analog computers) was built then, fat file systems can't handle it, most =
BIOSs can't handle it, all legacy programs can't handle it. 1980 is a =
magical date for PCs.
--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Vik" =3D=3D> wrote in message =
...
> how to change time in windows XP, I want to change the year to 1940, =
I
> changed the date in the Bios to 1940, but when Windows comes up it =
gives an
> error and it will not take the date from Bios. There are some websites =
that
> have an expiration date on the HTML code dated 1949, when I save them
> Bookmark to view off line the next day it has deleted I have to go =
back to
> the website.
>=20
>=20
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.