Skip to content

Commit 61769c8

Browse files
authored
Merge pull request #747 from dbready/fractional_seconds
Note "int" vs "double" representation of seconds in os API
2 parents 7f7ee75 + 934e091 commit 61769c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/os.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ JANET_CORE_FN(os_setenv,
11641164

11651165
JANET_CORE_FN(os_time,
11661166
"(os/time)",
1167-
"Get the current time expressed as the number of seconds since "
1167+
"Get the current time expressed as the number of whole seconds since "
11681168
"January 1, 1970, the Unix epoch. Returns a real number.") {
11691169
janet_fixarity(argc, 0);
11701170
(void) argv;
@@ -1174,7 +1174,7 @@ JANET_CORE_FN(os_time,
11741174

11751175
JANET_CORE_FN(os_clock,
11761176
"(os/clock)",
1177-
"Return the number of seconds since some fixed point in time. The clock "
1177+
"Return the number of whole + fractional seconds since some fixed point in time. The clock "
11781178
"is guaranteed to be non decreasing in real time.") {
11791179
janet_fixarity(argc, 0);
11801180
(void) argv;

0 commit comments

Comments
 (0)