From a156a6951d673883333d19d5bd73df260451e58a Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Wed, 28 Nov 2007 22:04:59 +0000 Subject: Lots of changes. fs.lua now only has file/filesystem functions. format.lua added to be convert/sytle format changes. join.lua and split.lua put in format now. May delete later. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@385 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/date.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/date.lua') diff --git a/lib/date.lua b/lib/date.lua index 0a236cc..2d8dab6 100644 --- a/lib/date.lua +++ b/lib/date.lua @@ -3,7 +3,7 @@ module(..., package.seeall) require("posix") -require("fs") +require("format") --global for date formating see below for more information --Mon Nov 26 19:56:10 UTC 2007 looks like most systems use this @@ -96,7 +96,7 @@ end function string_to_table (str) if str == nil then str = os.date(format) end g = {} - temp = fs.string_to_table("%s",str) + temp = format.string_to_table("%s",str) month = abr_month_num(temp[2]) g["month"] = month day = temp[3] @@ -105,7 +105,7 @@ function string_to_table (str) tz = temp[5] year = temp[6] g["year"] = year - temp2 = fs.string_to_table(":",temp[4]) + temp2 = format.string_to_table(":",temp[4]) hour = temp2[1] g["hour"] = hour min = temp2[2] -- cgit v1.2.3