mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update library.md
Fix the subtraction order and make the recommendation more concise.
This commit is contained in:
parent
923f4d00f6
commit
38f7b841a8
1 changed files with 1 additions and 3 deletions
|
@ -759,9 +759,7 @@ Otherwise, `s` is interpreted as a [date format string](https://www.cplusplus.co
|
|||
function os.difftime(a: number, b: number): number
|
||||
```
|
||||
|
||||
Calculates the difference in seconds between `a` and `b`; provided for compatibility.
|
||||
|
||||
It is adviced not to use `os.difftime(a, b)` for new work. Please use `b - a` instead.
|
||||
Calculates the difference in seconds between `a` and `b`; provided for compatibility only. Please use `a - b` instead.
|
||||
|
||||
```
|
||||
function os.time(t: table?): number
|
||||
|
|
Loading…
Add table
Reference in a new issue