Skip to content
aabishkar edited this page Sep 14, 2010 · 12 revisions

Welcome to the Nepali-Calendar wiki!

Objectives:

–to create a way for dates to be converted from nepali dates to english and vice­versa
–to allow to access events data from google calendar
–to display events data from google calendar that will be linked to multiple dates.

Processes

Basically application design is to create calendar where both Nepali and English dates are shown with
the google event of the user. Algorithms for this is given below:­
➔ Check whether Nepali Month and year is provided by the user or not.(1)
➔ If provided
 total days = get total number of days on provided month from dateData.py file.(2)
 Convert first day of Nepali Month in English date(2)
 Starting day = using system calendar identify in which day will that English date fall in.(2)
 event = []
 Check for email address and password(3)
➢ if provide check weather it is correct or not(3)
➢ if correct get the event for the Nepali Month and append event in ‘event list’ with the
date.(3)
➢ else display massages saying “Email address or password incorrect”(3)
➢ else pass
➔ else get the system date convert into Nepali date and use as input(1)
 total days = get total number of days on provided month from dateData.py file.(2)
 Convert first day of Nepali Month in English date(2)
 Starting day = using system calendar identify in which day will that English date fall in.(2)
 event = []
 Check for email address and password(3)
➢ if provide check weather it is correct or not(3)
➢ if correct get the event for the Nepali Month and append event in ‘event list’ with the
date.(3)
➢ else display massages saying “Email address or password incorrect”(3)
➢ else pass
➔ Display calendar for Starting day to total days(4)
 check weather there is an event or not for the event list(5)
➢ If found display(5)
 else pass(5)
[Note: if there is any number inside the bracket then it is explain in more detail in development section.]

Data Structures Used

1. Data Structure send to google calender.

“http://www.google.com/calendar/feeds/default/private/full?start­max=2010­05­31&start­min=2010­ 05­01”

Data Structures send to google calender is a web url QUERY. Start­max and start­min English Date are
send to google server. Event between this date are response back.

2. Data Structure response for google calender.

“[‘12/05/2010­G­Mathematics Paper 1’, ‘28/05/2010­G­Mathematics Paper 3’, ‘26T10:00:00.000+05:45/05/2010­G­Statistic Paper 1’, ‘20/05/2010­G­Computing Paper 3’, ‘19/05/2010­G­General Paper’, ‘17/05/2010­G­Mathematics Paper 1’, ’17/05/2010­G­Computing (9691/21)’]”

Data structure response for google calender is a list with events and its date.

3. Data Structure for Nepali date.

“DD/MM/YYYY”

Data structure used for Nepali date is “DD/MM/YYYY” were DD,MM and YYYY are day, month and
year. i.e “13/03/2066”

4.Data Structure for English date.

“DD/MM/YYYY”

Data structure used for English date is “DD/MM/YYYY” were DD,MM and YYYY are day, month
and year. i.e “13/03/2009”