Fix epoch documentation to use milliseconds (#580)
This commit is contained in:
parent
7f90f2f7ca
commit
f194f4fa3a
|
@ -378,17 +378,17 @@ public final int day( Optional<String> 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.
|
* 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.
|
* 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.
|
* January 1970 in the server's local timezone.
|
||||||
*
|
*
|
||||||
* @param args The locale to get the seconds for. Defaults to {@code ingame} if not set.
|
* @param args The locale to get the milliseconds for. Defaults to {@code ingame} if not set.
|
||||||
* @return The seconds since the epoch depending on the selected locale.
|
* @return The milliseconds since the epoch depending on the selected locale.
|
||||||
* @throws LuaException If an invalid locale is passed.
|
* @throws LuaException If an invalid locale is passed.
|
||||||
*/
|
*/
|
||||||
@LuaFunction
|
@LuaFunction
|
||||||
|
|
Loading…
Reference in New Issue