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

ShowTime.h File Reference

ShowTime.h File Reference

contains a couple of simple time printing apis More...

Go to the source code of this file.

Functions

void ShowTime (time_t tValue, int hOffset, int mOffset)
 ShowTime prints out the time to the serial console in a usable format.
void ShowTime (int hOffset=0, int mOffset=0)
 ShowTime prints out the time to the serial console in a usable format.

Detailed Description

contains a couple of simple time printing apis

APIs for showing the time from the RTC, or from a passed in value.

Note:
Copyright © 2011 by Smartware Computing, all rights reserved.
Author:
David Smart

Definition in file ShowTime.h.


Function Documentation

void ShowTime ( time_t  tValue,
int  hOffset,
int  mOffset 
)

ShowTime prints out the time to the serial console in a usable format.

This prints the passed in, or current time, to the console. It will indicate the time zone offset parameters as well.

Parameters:
tValueis the non-optional time value to convert to friendly time format. If this value is absent or zero, then it will get the system time to convert.
hOffsetis the non-optional hour offset to the local time zone
mOffsetis the non-optional minute offset to the local time zone
Returns:
nothing

Definition at line 19 of file ShowTime.c.

void ShowTime ( int  hOffset = 0,
int  mOffset = 0 
)

ShowTime prints out the time to the serial console in a usable format.

This prints the current time to the console. It will indicate the time zone offset parameters as well.

Parameters:
hOffsetis the optional hour offset to the local time zone
mOffsetis the optional minute offset to the local time zone
Returns:
nothing

Definition at line 15 of file ShowTime.c.