mirror of
https://github.com/janet-lang/janet
synced 2025-08-05 21:43:55 +00:00
Update CHANGELOG.
and format.
This commit is contained in:
parent
bcbeedb001
commit
84a4e3e98a
@ -2,6 +2,7 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## Unreleased - ???
|
## Unreleased - ???
|
||||||
|
- Add `os/strftime` for date formatting.
|
||||||
- Fix `ev/select` on threaded channels sometimes live-locking.
|
- Fix `ev/select` on threaded channels sometimes live-locking.
|
||||||
- Support the `NO_COLOR` environment variable to turn off VT100 color codes in repl (and in scripts).
|
- Support the `NO_COLOR` environment variable to turn off VT100 color codes in repl (and in scripts).
|
||||||
See http://no-color.org/
|
See http://no-color.org/
|
||||||
|
@ -1354,8 +1354,7 @@ JANET_CORE_FN(os_cryptorand,
|
|||||||
/* Helper function to get given or current time as local or UTC struct tm.
|
/* Helper function to get given or current time as local or UTC struct tm.
|
||||||
* - arg n+0: optional time_t to be converted, uses current time if not given
|
* - arg n+0: optional time_t to be converted, uses current time if not given
|
||||||
* - arg n+1: optional truthy to indicate the convnersion uses local time */
|
* - arg n+1: optional truthy to indicate the convnersion uses local time */
|
||||||
static struct tm *time_to_tm(const Janet *argv, int32_t argc, int32_t n, struct tm *t_infos)
|
static struct tm *time_to_tm(const Janet *argv, int32_t argc, int32_t n, struct tm *t_infos) {
|
||||||
{
|
|
||||||
time_t t;
|
time_t t;
|
||||||
if (argc > n && !janet_checktype(argv[n], JANET_NIL)) {
|
if (argc > n && !janet_checktype(argv[n], JANET_NIL)) {
|
||||||
int64_t integer = janet_getinteger64(argv, n);
|
int64_t integer = janet_getinteger64(argv, n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user