python project
python project
Micro-Project
Academic Year 2024-25
Microproject Report
Part A Part B
Name of Program: Diploma in Computer Engineering
Sign:
Maharashtra State
Board of Technical Education, Mumbai
(Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)
CERTIFICATE
This is to certify that Mr/Mrs. 147-Ritesh Parag Bharambe, 153-Sarthak Shivdas Bhor ,
175-Ganesh Dattatray Korulkar, 197-Vaishnavi Ramkrishna Korde of Diploma in
Computer Engineering of Pimpri-Chinchwad Polytechnic has completed Micro projects of
the course ……………………………………………. as prescribed in the curriculum for the
academic year 2024-25.
Place: Akurdi
Date:
Course In charge
Head of Department
……………… Prof. M.S. Malkar
Seal of institute
PART-A
Micro Project Proposal
Description:
Proposed methodology:
The group members discussed the topic of project.
Collecting the information according to the requirements.
Working of each student was given by leaders.
We collected information related to project.
After gathering information, we studied about the topic.
Changes were made according to the requirements of projects
Report was submitted along with presentation.
Action Plan:
SR. DETAILS OF PLANNED PLANNED NAME OF
NO ACTIVITY START FINISHED RESPONSIBLE
DATE DATE TEAM MEMBER
1. Topic given by subject
teacher and discussed Ganesh Korulkar
with given members.
2. Design of project
3. Planning of project
4. Distribution of task and Ritesh Bharambe
discussion of role and
responsibilities of each
other
5. Collection of information
related to the topic
6. Analysed the collected Sarthak Bhor
data and finalise structure
of the project
7. Report preparation
8. Implementation
Vaishnvi Korde
PART-B
Micro Project Proposal
Brief Description:
Development Process The development process for the World Clock
application involves the following steps:
Step 6: Testing and Debugging Thoroughly test the application to ensure its
functionality is working as expected. Handle potential issues or bugs that
arise during the testing phase.
● pytz: pytz is a Python library that provides access to the Olson time
zone database. It allows for accurate time zone conversions and
handling daylight saving time.
● Use the datetime module in Python to retrieve the current time and
date.
import tkinter as tk
import datetime
import pytz
class WorldClockApp:
def _init_(self):
self.cities = []
self.root = tk.Tk()
self.root.title("World Clock")
self.clock_labels = []
# Add cities to the city list
self.add_city("New York", "America/New_York")
self.add_city("London", "Europe/London")
self.add_city("Tokyo", "Asia/Tokyo")
self.create_ui()
self.update_clocks()
def add_city(self, city_name, timezone):
self.cities.append({"name": city_name, "timezone": timezone})
def create_ui(self):
for i, city in enumerate(self.cities):
label = tk.Label(self.root, text=city["name"], font=("Arial", 16,
"bold"))
label.grid(row=i, column=0, padx=10, pady=10)
self.clock_labels.append(label)
To run this code, make sure you have Tkinter installed (it comes pre-
installed with most Python distributions). Save the code to a Python file
(e.g., world_clock.py) and execute it using the Python interpreter:
import tkinter as tk
import datetime
import pytz
class WorldClockApp:
def __init__(self):
self.cities = []
self.root = tk.Tk()
self.root.title("World Clock")
self.clock_labels = []
# Add cities
self.add_city("New York", "America/New_York")
self.add_city("London", "Europe/London")
self.add_city("Tokyo", "Asia/Tokyo")
self.create_ui()
self.update_clocks()
def create_ui(self):
for i, city in enumerate(self.cities):
label = tk.Label(self.root, text=city["name"], font=("Arial", 16, "bold"))
label.grid(row=i, column=0, padx=10, pady=10)
self.clock_labels.append(label)
def update_clocks(self):
current_time = datetime.datetime.now(datetime.timezone.utc)
for i, city in enumerate(self.cities):
timezone = pytz.timezone(city["timezone"])
city_time = current_time.astimezone(timezone).strftime("%Y-
%m-%d %H:%M:%S")
self.clock_labels[i * 2 + 1].config(text=city_time)
self.root.after(1000, self.update_clocks)
6. Main Execution
if __name__ == "__main__":
app = WorldClockApp()
app.root.mainloop()
Literature Review:
The development of real-time clock applications has been an essential area
of study in the field of software development and time-based systems. As
the world becomes increasingly interconnected, keeping track of global
time zones has become crucial for individuals and organizations working
across different regions. Various studies and existing applications have
contributed significantly to understanding the implementation of world
clocks using different technologies and programming languages.
Conclusion:
In conclusion, the development of an application for a World clock using
Python has been successfully executed. The application effectively allows
users to view the current time in different cities around the world. The key
findings and outcomes of the project are as follows:
Functionalities: The application provides a user-friendly
interface with a list of cities to choose from. It accurately displays
the current time, taking into account time zones and daylight
saving adjustments.
Python Libraries: The development of the application utilized
various Python libraries, such as datetime and pytz, which
facilitated efficient time calculations and conversions.
Error Handling: Robust error handling mechanisms were
implemented to handle user input errors and ensure smooth
Action Plan:
SR. DETAILS OF ACTIVITY PLANNED PLANNED NAME OF RESPONSIBLE
NO START FINISHED TEAM MEMBER
DATE DATE
1) Topic given by subject
teacher and discussed Ganesh Korulkar
with given members.
2) Design of project
3) Planning of project
Ritesh Bharambe
4) Distribution of task and
discussion of role and
responsibilities of each
other
Sarthak Bhor
5) Collection of information
related to the topic
Sign: