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.

Implementations

C++

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);

Generated: Wed Apr 5 23:57:44 EST 2006 using "xsltproc ... docbook.xsl". Copyright (c) 2003, 2004, 2005; Paul Hamilton; pHamtec P/L. Use, modification, and distribution is provided free of any limitations.