diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-07-25 16:29:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 16:29:23 +0200 |
commit | 9c0c5e8bc60a389988b339372ef804325daf9b3f (patch) | |
tree | 7eab776d1de5f44c555753bbdfa0b46731ba34d6 /src/nvim/os | |
parent | 72ddbb675fc9cd649feeddef754b65c08bbf21ba (diff) | |
parent | 27dc42160fa2acbc3e5894068f28808c70ca3f44 (diff) | |
download | rneovim-9c0c5e8bc60a389988b339372ef804325daf9b3f.tar.gz rneovim-9c0c5e8bc60a389988b339372ef804325daf9b3f.tar.bz2 rneovim-9c0c5e8bc60a389988b339372ef804325daf9b3f.zip |
Merge #8729 'log: milliseconds, format'
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/time.c b/src/nvim/os/time.c index 290d421acc..31ef1a0cd6 100644 --- a/src/nvim/os/time.c +++ b/src/nvim/os/time.c @@ -114,12 +114,12 @@ struct tm *os_localtime_r(const time_t *restrict clock, #endif } -/// Obtains the current Unix timestamp and adjusts it to local time. +/// Gets the current Unix timestamp and adjusts it to local time. /// /// @param result Pointer to a 'struct tm' where the result should be placed /// @return A pointer to a 'struct tm' in the current time zone (the 'result' /// argument) or NULL in case of error -struct tm *os_get_localtime(struct tm *result) FUNC_ATTR_NONNULL_ALL +struct tm *os_localtime(struct tm *result) FUNC_ATTR_NONNULL_ALL { time_t rawtime = time(NULL); return os_localtime_r(&rawtime, result); |