Monday, November 08, 2010 at 12:02 AM.

system.verbs.builtins.date.hour

on hour (now = clock.now ()) {
	<<Changes
		<<8/2/08; 11:56:43 AM by DW
			<<Optional parameter allows you to ask for the hour of a time you specify.
		<<1/19/06; 5:34:32 AM by DW
			<<Return the current hour, this should be a simple routine thing to do.
	local (day, month, year, hour, minute, second);
	date.get (now, @day, @month, @year, @hour, @minute, @second);
	return (hour)}
<<bundle //test code
	<<dialog.alert (hour (date.yesterday (clock.now ())))



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.