Added note to docs about not using os.difftime for new work (#210)

Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>

Fixes #194.
This commit is contained in:
ccuser44 2021-11-17 16:42:04 +02:00 committed by GitHub
parent 59366ad7f8
commit a02086260b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -759,7 +759,7 @@ Otherwise, `s` is interpreted as a [date format string](https://www.cplusplus.co
function os.difftime(a: number, b: number): number function os.difftime(a: number, b: number): number
``` ```
Calculates the difference in seconds between `a` and `b`; provided for compatibility. Calculates the difference in seconds between `a` and `b`; provided for compatibility only. Please use `a - b` instead.
``` ```
function os.time(t: table?): number function os.time(t: table?): number