Skip to content

Commit cda1337

Browse files
committed
tweak doc for new apped_jsdoc format
1 parent 9bcbc2b commit cda1337

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/clock.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* Copyright (c) 2014 Martin Green. See the file LICENSE for copying permission. */
22

3-
/** Clock constructor. Apply is used to pass all arguments to the Date
4-
constructor */
3+
/** Clock constructor. Arguments to this
4+
are in exactly the same form as those
5+
to the built-in Date constructor. */
56
function Clock() {
67
this.lastTime = getTime();
78
if (arguments.length>1)
@@ -11,6 +12,7 @@ function Clock() {
1112
else
1213
this.date = new Date();
1314
}
15+
exports.Clock = Clock;
1416

1517
/** setClock(milliseconds since 1/1/1970) */
1618
Clock.prototype.setClock = function(ms) {
@@ -25,7 +27,7 @@ Clock.prototype.getDate = function () {
2527
return new Date((getTime()-this.lastTime)*1000 + this.date.getTime());
2628
};
2729

28-
exports.Clock = Clock;
30+
2931

3032

3133

0 commit comments

Comments
 (0)