Example of HTTPServer with additional features: * SNTPClient, DST rules * Link status indication * Local or SDCard-based WebServer * RPC-able class * Static and Dynamic HTML page

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DstZones.h Source File

DstZones.h

00001 // DstZone.h
00002 // Written by iva2k
00003 //
00004 // Data-driven implementation of DST zones.
00005 // This file is included into many places.
00006 // _() macro is defined for each specific use.
00007 
00008 // zone is DST symbol
00009 // pFnc is NULL or custom function of pFncDstCalc type
00010 // gmt 0..1
00011 // dst - shift in seconds (typically 3600)
00012 // hr 0..23
00013 // wk 0=last, 1=first, 2=second, etc.
00014 // wday 0=Sunday
00015 // mon 0..11
00016 
00017 // _( z, fnc, gmt, dst, hr1,wk1,wday1,mon1, hr2,wk2,wday2,mon2 )
00018 
00019 // zone,       pFnc, gmt,dst, 1:hr,wk,wday,mon, 2:hr,wk,wday,mon
00020 //------------------------------------------------------------------------------
00021 _( DST_NONE,   NULL, 0,    0,    0, 0, 0, 0,    0, 0, 0,  0 )
00022 
00023     // USA: 3600; 2, Second SUN, March; 2, First SUN, November
00024 _( DST_USA,    NULL, 0, 3600,    2, 2, 0, 2,    2, 1, 0, 10 )
00025 
00026     // USA: 3600; 2, First SUN, April; 2, Last SUN, October (Pre-2007)
00027 _( DST_USA_06, NULL, 0, 3600,    2, 1, 0, 3,    2, 0, 0,  9 )
00028 
00029     // EU: 3600; 1GMT, Last SUN, March; 1GMT, Last SUN, October
00030 _( DST_EU_GMT, NULL, 1, 3600,    1, 0, 0, 2,    1, 0, 0,  9 )
00031 
00032 //    // Just for test
00033 //_( DST_TEST,   NULL, 0, 3600,   18, 1, 2, 0,   12, 1, 4,  0 )
00034 
00035 
00036 #undef _
00037 //END