source: products/SimpleBlog/branches/plone-2.1-Blogging-APIs/skins/SimpleBlog/getBeginAndEndTimes.py @ 3665

Last change on this file since 3665 was 1, checked in by myroslav, 18 years ago

Building directory structure

File size: 392 bytes
Line 
1## Script (Python) "getBeginAndEndTimes"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=day, month, year
8##title=
9##
10
11day=int(day)
12month=int(month)
13year=int(year)
14
15begin=DateTime('%d-%02d-%02d 00:00:00' % (year, month, day))
16end=DateTime('%d-%02d-%02d 23:59:59' % (year, month, day))
17
18return (begin, end)
Note: See TracBrowser for help on using the repository browser.