bz localTime

From BZFlagWiki
Revision as of 21:05, 30 December 2008 by Yassen (Talk | contribs) (Added bz_localTime structure for BZFS API)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
BZFS API Documentation This page contains part of the BZFS API documentation for use by Plug-ins on the BZFS server.


bz_localTime is a structure for the local time of the (server?).
To fill the new structure bz_localTime, see bz_getLocaltime



 int year;
 int month;
 int day;
 int hour;
 int minute;
 int second;
 bool daylightSavings;



void writeTime(int playerID){

 bz_localTime st; // create new object
bz_getLocaltime(&st); // fill st with values
bz_sendTestMessagef(BZ_SERVER,playerID,"The time is %i:%i.",st.hour,st.minute); // print [hour]:[minute] to player