removed ldoc comments

This commit is contained in:
Thijs Schreijer
2013-09-16 17:00:38 +02:00
parent a84d84d05b
commit 3fa19a191f

View File

@@ -1,9 +1,9 @@
--------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------
-- Module for date and time calculations -- Module for date and time calculations
-- --
-- @copyright Version 2.1.0, Copyright (C) 2006, by Jas Latrix (jastejada@yahoo.com), All Rights Deserved. Use this code at your own risk!. Keep out of reach of children. Copyright (C) 2013 update to Lua 5.2 by Thijs Schreijer -- Version 2.1.0, Copyright (C) 2006, by Jas Latrix (jastejada@yahoo.com)
-- @name date -- All Rights Deserved. Use this code at your own risk! Keep out of reach of children.
-- @class module -- Copyright (C) 2013 update to Lua 5.2 by Thijs Schreijer
--[[ CONSTANTS ]]-- --[[ CONSTANTS ]]--
local HOURPERDAY = 24 local HOURPERDAY = 24
@@ -419,9 +419,7 @@
self.daynum, self.dayfrc = dn + floor(df/TICKSPERDAY), mod(df, TICKSPERDAY) self.daynum, self.dayfrc = dn + floor(df/TICKSPERDAY), mod(df, TICKSPERDAY)
return (dn >= DAYNUM_MIN and dn <= DAYNUM_MAX) and self or error("date beyond imposed limits:"..self) return (dn >= DAYNUM_MIN and dn <= DAYNUM_MAX) and self or error("date beyond imposed limits:"..self)
end end
--- Gets the date from a date object.
-- @return 3 return values; year, month, day
-- @example local y, m, d = MyDate:getdate()
function dobj:getdate() local y, m, d = breakdaynum(self.daynum) return y, m+1, d end function dobj:getdate() local y, m, d = breakdaynum(self.daynum) return y, m+1, d end
function dobj:gettime() return breakdayfrc(self.dayfrc) end function dobj:gettime() return breakdayfrc(self.dayfrc) end