Dvbdate
Note: The correct title of this article is dvbdate. It appears incorrectly here due to technical restrictions.
dvbdate appears to be a utility for reading the date/time from your dvb card.
Since we are obviously TV lovers, what could be a more useful means of measuring time?
In addition, since an internet-free MythTV box is feasible with DVB (because the EPG data can come from the DVB stream itself), dvbdate provides a useful network-free alternative to NTP.
Usage
dvbdate appears to work even when your cards are tied up doing other things. It only reads the date from /dev/dvb/adapter0
dvbdate will report the date/time to the command line when used with no arguments.
To set the system clock
dvbdate --set
If your system clock is way off, you might want to force it.
dvbdate --set --force
Set dvbdate to run in your crontab every hour or so and you have a system that keeps time with the TV ; perfect for MythTV users.
Bugs
You must set the TZ environment variable to your timezone difference for dvbdate to correctly set the time.
TZ=+10:00 dvbdate --set