This package contains a simple test of tests for various elements of the SmartBoard hardware, which is a simple baseboard designed for easy embedding. It is able to run both a semi-automatic test suite as well as allow interactive testing.

Dependencies:   EthernetNetIf NTPClient_NetServices mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ShowTime.h Source File

ShowTime.h

Go to the documentation of this file.
00001 /// @file ShowTime.h contains a couple of simple time printing apis
00002 ///
00003 /// APIs for showing the time from the RTC, or from a passed in value.
00004 ///
00005 /// @note Copyright © 2011 by Smartware Computing, all rights reserved.
00006 /// @author David Smart
00007 ///
00008 #ifndef SHOWTIME_H
00009 #define SHOWTIME_H
00010 
00011 /// ShowTime prints out the time to the serial console in a usable format
00012 ///
00013 /// This prints the passed in, or current time, to the console. It will
00014 /// indicate the time zone offset parameters as well.
00015 ///
00016 /// @param tValue is the non-optional time value to convert to friendly time format. If
00017 ///     this value is absent or zero, then it will get the system time to convert.
00018 /// @param hOffset is the non-optional hour offset to the local time zone
00019 /// @param mOffset is the non-optional minute offset to the local time zone
00020 /// @returns nothing
00021 ///
00022 void ShowTime(time_t tValue, int hOffset, int mOffset);
00023 
00024 /// ShowTime prints out the time to the serial console in a usable format
00025 ///
00026 /// This prints the current time to the console. It will
00027 /// indicate the time zone offset parameters as well.
00028 ///
00029 /// @param hOffset is the optional hour offset to the local time zone
00030 /// @param mOffset is the optional minute offset to the local time zone
00031 /// @returns nothing
00032 ///
00033 void ShowTime(int hOffset=0, int mOffset=0);
00034 
00035 #endif