date : output |
Output the block to the stream.
Any other method of any other object can call this method. This is called 'public' access.
The data-type returned is "voidtype";
This method is contained in the object "date".
The method takes the following arguments:
filedef : Pointer to tgl_structure_parser
Not sure.
obj : Pointer to @schemaobj
Not sure.
This method is overridden from an abstract method with the same signature found in the object @block.
The files "tgl_structure_parser.hpp" and "time.h" are included.
Output a date.
// get the curren time and convert to local time. time_t curtime = time(NULL); struct tm *loctime = localtime (&curtime); // write it as a string. char buf[256]; strftime(buf, sizeof(buf), _format.c_str(), loctime); // and output it. filedef->write_output(buf);