X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/85c40964551cb74c3d6ef6bf61a12fd79013389b..36d88e5726e9d7da88fca3efd0d6f824d6254e46:/luatz/strftime.lua?ds=inline diff --git a/luatz/strftime.lua b/luatz/strftime.lua index 0f6a26f..04208b8 100644 --- a/luatz/strftime.lua +++ b/luatz/strftime.lua @@ -198,6 +198,11 @@ local function strftime ( format_string , timetable ) end ) ) end +local function asctime ( timetable ) + return strftime ( "%c\n" , timetable ) +end + return { strftime = strftime ; + asctime = asctime ; }