X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/85c40964551cb74c3d6ef6bf61a12fd79013389b..ba4cf5bdfc3e75c0366771a1cdda676e9ccbeeb3:/luatz/strftime.lua?ds=sidebyside diff --git a/luatz/strftime.lua b/luatz/strftime.lua index 0f6a26f..55e7b67 100644 --- a/luatz/strftime.lua +++ b/luatz/strftime.lua @@ -198,6 +198,12 @@ local function strftime ( format_string , timetable ) end ) ) end +local function asctime ( timetable ) + -- Equivalent to the format string "%c\n" + return t.c ( timetable , c_locale ) .. "\n" +end + return { strftime = strftime ; + asctime = asctime ; }