mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
20 lines
290 B
JavaScript
20 lines
290 B
JavaScript
var theTime;
|
|
|
|
/**
|
|
* Get the time
|
|
* @returns {Date} the current date
|
|
*/
|
|
|
|
/**
|
|
* Set the time
|
|
* @param {Date} time the current time
|
|
* @returns {undefined} nothing
|
|
*/
|
|
function getTheTime(time) {
|
|
if (arguments.length === 0) {
|
|
return new Date();
|
|
} else {
|
|
theTime = time;
|
|
}
|
|
}
|