From f194f4fa3a17c48ff1a9088d50063f4a675a23b6 Mon Sep 17 00:00:00 2001 From: Stephen Gibson Date: Fri, 13 Nov 2020 14:32:49 +0000 Subject: [PATCH] Fix epoch documentation to use milliseconds (#580) --- .../java/dan200/computercraft/core/apis/OSAPI.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/dan200/computercraft/core/apis/OSAPI.java b/src/main/java/dan200/computercraft/core/apis/OSAPI.java index be5dbb2dd..b0752cdaa 100644 --- a/src/main/java/dan200/computercraft/core/apis/OSAPI.java +++ b/src/main/java/dan200/computercraft/core/apis/OSAPI.java @@ -378,17 +378,17 @@ public final int day( Optional args ) throws LuaException } /** - * Returns the number of seconds since an epoch depending on the locale. + * Returns the number of milliseconds since an epoch depending on the locale. * - * * If called with {@code ingame}, returns the number of seconds since the + * * If called with {@code ingame}, returns the number of milliseconds since the * world was created. This is the default. - * * If called with {@code utc}, returns the number of seconds since 1 + * * If called with {@code utc}, returns the number of milliseconds since 1 * January 1970 in the UTC timezone. - * * If called with {@code local}, returns the number of seconds since 1 + * * If called with {@code local}, returns the number of milliseconds since 1 * January 1970 in the server's local timezone. * - * @param args The locale to get the seconds for. Defaults to {@code ingame} if not set. - * @return The seconds since the epoch depending on the selected locale. + * @param args The locale to get the milliseconds for. Defaults to {@code ingame} if not set. + * @return The milliseconds since the epoch depending on the selected locale. * @throws LuaException If an invalid locale is passed. */ @LuaFunction