Commit 5e2e9ae8 authored by Jérome Perrin's avatar Jérome Perrin

make functions accessible in TTW code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6803 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d157fca5
......@@ -26,9 +26,19 @@
#
##############################################################################
from AccessControl import ModuleSecurityInfo
from DateTime import DateTime
from zLOG import LOG
security = ModuleSecurityInfo('Products.ERP5Type.DateUtils')
security.declarePublic('addToDate', 'getClosestDate',
'getIntervalBetweenDates', 'getMonthAndDaysBetween',
'getCompletedMonthBetween', 'getRoundedMonthBetween',
'getMonthFraction', 'getYearFraction', 'getAccountableYearFraction',
'getBissextilCompliantYearFraction',
'getDecimalNumberOfYearsBetween','roundMonthToGreaterEntireYear',
'roundDate')
millis = DateTime('2000/01/01 12:00:00.001') - DateTime('2000/01/01 12:00:00')
centis = millis * 10
number_of_months_in_year = 12.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment