/**
 * strftime() - JavaScript porting from PHP's strftime: http://php.net/strftime
 * string strftime ( string format [, int timestamp] )
 *
 * Copyright (C) 2006  Dao Gottwald  <dao at design-noir.de>
 * 
 * Licensed under the terms of the GNU Lesser General Public License:currentTime
 *   http://www.opensource.org/licenses/lgpl-license.php
 *
 * @version  1.0
 * @require  Date.format()
 * @url      http://design-noir.de/webdev/JS/Date.format/
 */

function strftime(format, timestamp) {
	var t = new Date;
	if (typeof timestamp != 'undefined')
		t.setTime(timestamp * 1000);
	return t.format(format);
}