Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lwip/SNTPClient/DstZones.h
- Revision:
- 0:9cf1d79ebe04
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lwip/SNTPClient/DstZones.h Thu Sep 08 08:57:21 2011 +0000 @@ -0,0 +1,37 @@ +// DstZone.h +// Written by iva2k +// +// Data-driven implementation of DST zones. +// This file is included into many places. +// _() macro is defined for each specific use. + +// zone is DST symbol +// pFnc is NULL or custom function of pFncDstCalc type +// gmt 0..1 +// dst - shift in seconds (typically 3600) +// hr 0..23 +// wk 0=last, 1=first, 2=second, etc. +// wday 0=Sunday +// mon 0..11 + +// _( z, fnc, gmt, dst, hr1,wk1,wday1,mon1, hr2,wk2,wday2,mon2 ) + +// zone, pFnc, gmt,dst, 1:hr,wk,wday,mon, 2:hr,wk,wday,mon +//------------------------------------------------------------------------------ +_( DST_NONE, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) + + // USA: 3600; 2, Second SUN, March; 2, First SUN, November +_( DST_USA, NULL, 0, 3600, 2, 2, 0, 2, 2, 1, 0, 10 ) + + // USA: 3600; 2, First SUN, April; 2, Last SUN, October (Pre-2007) +_( DST_USA_06, NULL, 0, 3600, 2, 1, 0, 3, 2, 0, 0, 9 ) + + // EU: 3600; 1GMT, Last SUN, March; 1GMT, Last SUN, October +_( DST_EU_GMT, NULL, 1, 3600, 1, 0, 0, 2, 1, 0, 0, 9 ) + +// // Just for test +//_( DST_TEST, NULL, 0, 3600, 18, 1, 2, 0, 12, 1, 4, 0 ) + + +#undef _ +//END \ No newline at end of file