Back to index

plone3  3.1.7
Functions | Variables
date_components_support Namespace Reference

Functions

def month_names

Variables

int default = 0
list years = []
list days = []
list months = []
list hours = []
list minutes = []
list ampm = []
tuple now = DateTime()
tuple CEILING = DateTime(9999, 0)
tuple FLOOR = DateTime(1970, 0)
tuple PLONE_CEILING = DateTime(2021,0)
tuple date = date.strip()
 site_properties = context.portal_properties.site_properties
tuple min_year = site_properties.getProperty('calendar_starting_year', 1999)
tuple max_year = site_properties.getProperty('calendar_future_years_available', 5)
tuple year = int(date.strftime('%Y'))
dictionary d = {'id': x, 'value': x, 'selected': None}
tuple month = int(date.strftime('%m'))
tuple day = int(date.strftime('%d'))
list hours_range = [12]
string hour_default = '12'
tuple hour = int(date.strftime('%I'))
tuple minute = int(date.strftime('%M'))
tuple p = date.strftime('%p')

Function Documentation

Definition at line 31 of file date_components_support.py.

00031 
00032 def month_names():
00033     names={}
00034     for x in range(1,13):
00035         faux=DateTime(2004, x, 1)
00036         names[x]=faux.Month()
00037     return names
00038 
00039 month_dict=month_names()
00040 
00041 # This debacle is because the date that is usually passed in ends with GMT
00042 # and of course DateTime is too stupid to handle it.  So we strip it off.


Variable Documentation

Definition at line 23 of file date_components_support.py.

tuple date_components_support.CEILING = DateTime(9999, 0)

Definition at line 27 of file date_components_support.py.

dictionary date_components_support.d = {'id': x, 'value': x, 'selected': None}

Definition at line 84 of file date_components_support.py.

tuple date_components_support.date = date.strip()

Definition at line 44 of file date_components_support.py.

tuple date_components_support.day = int(date.strftime('%d'))

Definition at line 102 of file date_components_support.py.

Definition at line 19 of file date_components_support.py.

Definition at line 17 of file date_components_support.py.

tuple date_components_support.FLOOR = DateTime(1970, 0)

Definition at line 28 of file date_components_support.py.

tuple date_components_support.hour = int(date.strftime('%I'))

Definition at line 118 of file date_components_support.py.

Definition at line 117 of file date_components_support.py.

Definition at line 21 of file date_components_support.py.

Definition at line 116 of file date_components_support.py.

tuple date_components_support.max_year = site_properties.getProperty('calendar_future_years_available', 5)

Definition at line 72 of file date_components_support.py.

date_components_support.min_year = site_properties.getProperty('calendar_starting_year', 1999)

Definition at line 67 of file date_components_support.py.

tuple date_components_support.minute = int(date.strftime('%M'))

Definition at line 135 of file date_components_support.py.

Definition at line 22 of file date_components_support.py.

tuple date_components_support.month = int(date.strftime('%m'))

Definition at line 89 of file date_components_support.py.

Definition at line 20 of file date_components_support.py.

tuple date_components_support.now = DateTime()

Definition at line 24 of file date_components_support.py.

tuple date_components_support.p = date.strftime('%p')

Definition at line 149 of file date_components_support.py.

tuple date_components_support.PLONE_CEILING = DateTime(2021,0)

Definition at line 29 of file date_components_support.py.

date_components_support.site_properties = context.portal_properties.site_properties

Definition at line 65 of file date_components_support.py.

tuple date_components_support.year = int(date.strftime('%Y'))

Definition at line 78 of file date_components_support.py.

Definition at line 18 of file date_components_support.py.