Re: Act on Date

[ Follow Ups ] [ BasicCard User Forum ]

Posted by zeitcontrol ( on May 18, 2005 at 06:06:56:

In Reply to: Act on Date posted by daves on May 08, 2005 at 04:34:00:

Hello Dave,

since the BasicCard itself has no real time clock, there is no save way to know the data from within card.

Within BasicCard Terminal there are some useful date time functions within Misc library. See BasicCard manual chapter 7.10 "MISC: Miscellaneous Procedures". E.g. the following functions can be useful:
- Sub GetDateTime (DT As DateTime)
- Function UnixTime() As Long

Of cause this functions rely on local computer real time clock which may not contain the real date/time, since this can be easily manipulated. The only secure way would probably be a server based system, where the server generates a Certificate (see 3.16.4 Encryption Functions) which can be loaded into a BasicCard causing the card to update the value.

Michael Petig
ZeitControl cardsystems GmbH

Follow Ups:

[ Follow Ups ] [ BasicCard User Forum ]