rename: os_get_localtime => os_localtime

This commit is contained in:
Justin M. Keyes
2018-07-11 22:20:32 +02:00
parent 72ddbb675f
commit ddea519542
2 changed files with 3 additions and 3 deletions

View File

@@ -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);