SlideShare a Scribd company logo
1 of 9
LESSON PLAN: TIME AND COMPUTERS
DATE: the 9th of November, 2016
GRADE: the 11th
TEACHERS: Francisco Pérez García
THEME: Time and computers
Crosscurricular activity involving communication in a foreign language (English),
computer sciences and art
COMPETENCES:
- Design by using HTML5, CSS and Javascript libraries in order to create time related
objects.
- Understand the diferent types of calendar (Julian, Gregorian, Islamic, Hebrew) and the
role of ISO 8601.
- Understand the possibilities of programming in art object with a time component (e.g.
p5.js javascript library)
- Understand the drawing possibilities of programming with a canvas element (e.g. canvas
in HTML5)
- Understand the style possibilites of programming with CSS (Cascade Style Sheet)
- Understand the role of random numbers and variables in the generation of an art objects
- Learn to program clocks by using mathematical funcions and coding
- Learn how to use conditional statements to tell the current date and time in natural
English by using real time javascript functions
TYPE OF LESSON: Combined lesson
TYPES OF INTERACTION: teacher – student, student – student, computer-student
TEACHING TOOLS: the blackboard, the projector and a computer room with software:
Sublime text code editor and the web w3schools.com to learn coding.
TIME: 4 lessons of 50 minutes
WARMER
They are asked to review their mobiles and the internet to find this information, specially
to practice coding online at w3schools.com in order to improve their coding skills by
using another code editor as Sublime Text or Visual Studio Code
LEARNING STRATEGY
Create codes using as a code editor Sublime Text or Visual Studio Code in order to create
art object related to art.
FORMULATION OF THE SUBJECT
Students will be informed that during this lesson they will learn some English instructions
in Javascript, HTML5 and CSS to create objects to express time.
COMMUNICATION OF KNOWLEDGE
Activity 1- Programming a clock
Part I - Create the Canvas
The clock needs an HTML container. Create an HTML canvas:
Canvas for the clock
Part II - Draw a Clock Face
The clock needs a clock face. Create a JavaScript function to draw a clock face:
Clock face
Part III - Draw Clock Numbers
The clock needs numbers. Create a JavaScript function to draw clock numbers:
Clock numbers
Part IV - Draw Clock Hands
The clock needs hands. Create a JavaScript function to draw clock hands:
Clock hands
Part V - Start the Clock
To start the clock, call the drawClock function at intervals:
Clock start
Example at http://arteducation.eu/clock
Activity 2. Explore the calendar converter at http://arteducation.eu/calendars and
propose codes to interconvert calendars
Date formats: There are many formats and many calendars. These are examples for the
Gregorian calendar
Date format Example
ISO Date "2016-09-11" (The International Standard)
Short Date "11/09/2016"
Long Date “Nov 09 2016" or "09 Nov 2016"
Full Date "Wednesday November 9 2016"
ISO 8601
International Standard
Organization rule 8601
YYYY-MM-DD or YYYYMMDD
It is easer to order everything!
Date Get Methods
Get methods are used for getting a part of a date. Here are the most common
(alphabetically):
Method Description
getDate() Get the day as a number (1-31)
getDay() Get the weekday as a number (0-6)
getFullYear() Get the four digit year (yyyy)
getHours() Get the hour (0-23)
getMilliseconds() Get the milliseconds (0-999)
getMinutes() Get the minutes (0-59)
getMonth() Get the month (0-11)
getSeconds() Get the seconds (0-59)
getTime() Get the time (milliseconds since January 1, 1970)
Date Set Methods
Set methods are used for setting a part of a date. Here are the most common
(alphabetically):
Method Description
setDate() Set the day as a number (1-31)
setFullYear() Set the year (optionally month and day)
setHours() Set the hour (0-23)
setMilliseconds() Set the milliseconds (0-999)
setMinutes() Set the minutes (0-59)
setMonth() Set the month (0-11)
setSeconds() Set the seconds (0-59)
setTime() Set the time (milliseconds since January 1, 1970)
Compare Dates
Dates can easily be compared.
The following example compares today's date with January 14, 2100:
Code example
Activity 3. Understandthe time zones creatingan Erasmus clock
Create an art clock
Change the functions previously explained in order to create an art clock

More Related Content

Viewers also liked

Lesson plan environment 2
Lesson plan   environment 2Lesson plan   environment 2
Lesson plan environment 2Francisco Perez
 
Lesson plan numbers leu alex dear
Lesson plan numbers leu alex dearLesson plan numbers leu alex dear
Lesson plan numbers leu alex dearFrancisco Perez
 
Numbers in the compositional structure
Numbers in the compositional structureNumbers in the compositional structure
Numbers in the compositional structureFrancisco Perez
 
Lesson leu alex numbers_highschool_lvl
Lesson leu alex numbers_highschool_lvlLesson leu alex numbers_highschool_lvl
Lesson leu alex numbers_highschool_lvlFrancisco Perez
 
Erasmus environment - dragons den advert
Erasmus   environment - dragons den advertErasmus   environment - dragons den advert
Erasmus environment - dragons den advertFrancisco Perez
 
Developing english-through-art-oriented-activities-1 final(1)
Developing english-through-art-oriented-activities-1   final(1)Developing english-through-art-oriented-activities-1   final(1)
Developing english-through-art-oriented-activities-1 final(1)Francisco Perez
 
Erasmus the human body - lesson 1
Erasmus   the human body - lesson 1Erasmus   the human body - lesson 1
Erasmus the human body - lesson 1Francisco Perez
 
Erasmus the human body - lesson 2 youtube
Erasmus   the human body - lesson 2 youtubeErasmus   the human body - lesson 2 youtube
Erasmus the human body - lesson 2 youtubeFrancisco Perez
 
Erasmus the human body - lesson 3
Erasmus    the human body -  lesson 3Erasmus    the human body -  lesson 3
Erasmus the human body - lesson 3Francisco Perez
 
Erasmus the human body - lesson 4
Erasmus    the human body - lesson 4Erasmus    the human body - lesson 4
Erasmus the human body - lesson 4Francisco Perez
 
Erasmus environment - trash to treasure
Erasmus  environment - trash to treasureErasmus  environment - trash to treasure
Erasmus environment - trash to treasureFrancisco Perez
 
Annex 5 conceptual maps in english
Annex 5  conceptual maps in englishAnnex 5  conceptual maps in english
Annex 5 conceptual maps in englishFrancisco Perez
 
Lesson plan Iulia Ionescu
Lesson plan Iulia IonescuLesson plan Iulia Ionescu
Lesson plan Iulia IonescuFrancisco Perez
 
Annex 2 matching exercise
Annex 2  matching exerciseAnnex 2  matching exercise
Annex 2 matching exerciseFrancisco Perez
 

Viewers also liked (20)

Feelings and computers
Feelings and computersFeelings and computers
Feelings and computers
 
Feelings and molecules
Feelings and moleculesFeelings and molecules
Feelings and molecules
 
Lesson plan environment 2
Lesson plan   environment 2Lesson plan   environment 2
Lesson plan environment 2
 
Lesson plan insects
Lesson plan   insectsLesson plan   insects
Lesson plan insects
 
Lesson plan numbers leu alex dear
Lesson plan numbers leu alex dearLesson plan numbers leu alex dear
Lesson plan numbers leu alex dear
 
Numbers in the compositional structure
Numbers in the compositional structureNumbers in the compositional structure
Numbers in the compositional structure
 
Lesson leu alex numbers_highschool_lvl
Lesson leu alex numbers_highschool_lvlLesson leu alex numbers_highschool_lvl
Lesson leu alex numbers_highschool_lvl
 
Erasmus environment - dragons den advert
Erasmus   environment - dragons den advertErasmus   environment - dragons den advert
Erasmus environment - dragons den advert
 
Developing english-through-art-oriented-activities-1 final(1)
Developing english-through-art-oriented-activities-1   final(1)Developing english-through-art-oriented-activities-1   final(1)
Developing english-through-art-oriented-activities-1 final(1)
 
Erasmus the human body - lesson 1
Erasmus   the human body - lesson 1Erasmus   the human body - lesson 1
Erasmus the human body - lesson 1
 
Erasmus the human body - lesson 2 youtube
Erasmus   the human body - lesson 2 youtubeErasmus   the human body - lesson 2 youtube
Erasmus the human body - lesson 2 youtube
 
Erasmus the human body - lesson 3
Erasmus    the human body -  lesson 3Erasmus    the human body -  lesson 3
Erasmus the human body - lesson 3
 
Erasmus the human body - lesson 4
Erasmus    the human body - lesson 4Erasmus    the human body - lesson 4
Erasmus the human body - lesson 4
 
Erasmus environment - trash to treasure
Erasmus  environment - trash to treasureErasmus  environment - trash to treasure
Erasmus environment - trash to treasure
 
Annex 9 body sculpture
Annex 9   body sculptureAnnex 9   body sculpture
Annex 9 body sculpture
 
Annex 5 conceptual maps in english
Annex 5  conceptual maps in englishAnnex 5  conceptual maps in english
Annex 5 conceptual maps in english
 
Lesson plan Iulia Ionescu
Lesson plan Iulia IonescuLesson plan Iulia Ionescu
Lesson plan Iulia Ionescu
 
Portraits puzzle
Portraits puzzlePortraits puzzle
Portraits puzzle
 
Annex 2 matching exercise
Annex 2  matching exerciseAnnex 2  matching exercise
Annex 2 matching exercise
 
Lectie feelings
Lectie feelingsLectie feelings
Lectie feelings
 

Similar to Time and computers

SessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTimeSessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTimeHellen Gakuruh
 
Php date & time functions
Php date & time functionsPhp date & time functions
Php date & time functionsProgrammer Blog
 
Waukesha One Coding Presentation
Waukesha One Coding PresentationWaukesha One Coding Presentation
Waukesha One Coding PresentationAJ Raebel
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07Terry Yoast
 
FYBSC IT Web Programming Unit III Core Javascript
FYBSC IT Web Programming Unit III  Core JavascriptFYBSC IT Web Programming Unit III  Core Javascript
FYBSC IT Web Programming Unit III Core JavascriptArti Parab Academics
 
Jianjun(Winston)'s Resume
Jianjun(Winston)'s ResumeJianjun(Winston)'s Resume
Jianjun(Winston)'s ResumeJianjun Liu
 
Object oriented programming in r
Object oriented programming in r Object oriented programming in r
Object oriented programming in r Ashwini Mathur
 
Current Toolbox and Pedagogies - October 09
Current Toolbox and Pedagogies - October 09Current Toolbox and Pedagogies - October 09
Current Toolbox and Pedagogies - October 09point2five
 
2.5 clock, desktop, and dictionary objects
2.5   clock, desktop, and dictionary objects2.5   clock, desktop, and dictionary objects
2.5 clock, desktop, and dictionary objectsallenbailey
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
TypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkBob German
 
Dates and Times in Java 7 and Java 8
Dates and Times in Java 7 and Java 8Dates and Times in Java 7 and Java 8
Dates and Times in Java 7 and Java 8Fulvio Corno
 
Ex11 lesson plan
Ex11 lesson planEx11 lesson plan
Ex11 lesson plankatienipp93
 
Quadratics Querry
Quadratics QuerryQuadratics Querry
Quadratics Querrymanastas
 
Quardratics Querry Pbl!
Quardratics Querry  Pbl!Quardratics Querry  Pbl!
Quardratics Querry Pbl!manastas
 
Dmitriy Elisov CV v2.1
Dmitriy Elisov CV v2.1Dmitriy Elisov CV v2.1
Dmitriy Elisov CV v2.1Dmitry Elisov
 

Similar to Time and computers (20)

SessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTimeSessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTime
 
Php date & time functions
Php date & time functionsPhp date & time functions
Php date & time functions
 
Ddpz2613 topic9 java
Ddpz2613 topic9 javaDdpz2613 topic9 java
Ddpz2613 topic9 java
 
Waukesha One Coding Presentation
Waukesha One Coding PresentationWaukesha One Coding Presentation
Waukesha One Coding Presentation
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07
 
FYBSC IT Web Programming Unit III Core Javascript
FYBSC IT Web Programming Unit III  Core JavascriptFYBSC IT Web Programming Unit III  Core Javascript
FYBSC IT Web Programming Unit III Core Javascript
 
Jianjun(Winston)'s Resume
Jianjun(Winston)'s ResumeJianjun(Winston)'s Resume
Jianjun(Winston)'s Resume
 
Object oriented programming in r
Object oriented programming in r Object oriented programming in r
Object oriented programming in r
 
Java lab 2
Java lab 2Java lab 2
Java lab 2
 
Current Toolbox and Pedagogies - October 09
Current Toolbox and Pedagogies - October 09Current Toolbox and Pedagogies - October 09
Current Toolbox and Pedagogies - October 09
 
2.5 clock, desktop, and dictionary objects
2.5   clock, desktop, and dictionary objects2.5   clock, desktop, and dictionary objects
2.5 clock, desktop, and dictionary objects
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
TypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint Framework
 
Dates and Times in Java 7 and Java 8
Dates and Times in Java 7 and Java 8Dates and Times in Java 7 and Java 8
Dates and Times in Java 7 and Java 8
 
Ex11 lesson plan
Ex11 lesson planEx11 lesson plan
Ex11 lesson plan
 
Quadratics Querry
Quadratics QuerryQuadratics Querry
Quadratics Querry
 
Quardratics Querry Pbl!
Quardratics Querry  Pbl!Quardratics Querry  Pbl!
Quardratics Querry Pbl!
 
Ad507
Ad507Ad507
Ad507
 
Dmitriy Elisov CV v2.1
Dmitriy Elisov CV v2.1Dmitriy Elisov CV v2.1
Dmitriy Elisov CV v2.1
 

More from Francisco Perez

More from Francisco Perez (20)

Coding tools
Coding toolsCoding tools
Coding tools
 
Analysing the Universe
Analysing the UniverseAnalysing the Universe
Analysing the Universe
 
Contaminants
ContaminantsContaminants
Contaminants
 
Docking 1
Docking 1Docking 1
Docking 1
 
Campus Ítaca UAB
Campus Ítaca UABCampus Ítaca UAB
Campus Ítaca UAB
 
Vivid library powerpoint
Vivid library powerpointVivid library powerpoint
Vivid library powerpoint
 
Multicultural theatres
Multicultural theatresMulticultural theatres
Multicultural theatres
 
D'ESO a CF 2019
D'ESO a CF 2019D'ESO a CF 2019
D'ESO a CF 2019
 
Debating in Latvia
Debating in LatviaDebating in Latvia
Debating in Latvia
 
Projecte amb institut xinès
Projecte amb institut xinèsProjecte amb institut xinès
Projecte amb institut xinès
 
Projecte Erasmus+
Projecte Erasmus+Projecte Erasmus+
Projecte Erasmus+
 
Visit Jeonbuk High School (Corea)
Visit Jeonbuk High School (Corea)Visit Jeonbuk High School (Corea)
Visit Jeonbuk High School (Corea)
 
Guia pràctica per fer un bon tr btx 20 consells
Guia pràctica per fer un bon tr btx 20 consellsGuia pràctica per fer un bon tr btx 20 consells
Guia pràctica per fer un bon tr btx 20 consells
 
Essay
EssayEssay
Essay
 
Presentation for Portugal
Presentation for PortugalPresentation for Portugal
Presentation for Portugal
 
Sant Jordi 2018
Sant Jordi 2018Sant Jordi 2018
Sant Jordi 2018
 
Ponderacions catalunya pau 2018
Ponderacions catalunya pau 2018Ponderacions catalunya pau 2018
Ponderacions catalunya pau 2018
 
Des d'ESO a CCFF 2018
Des d'ESO a CCFF 2018Des d'ESO a CCFF 2018
Des d'ESO a CCFF 2018
 
Class lists
Class listsClass lists
Class lists
 
Families are reading the world classic novels
Families are reading  the world classic novelsFamilies are reading  the world classic novels
Families are reading the world classic novels
 

Recently uploaded

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

Time and computers

  • 1. LESSON PLAN: TIME AND COMPUTERS DATE: the 9th of November, 2016 GRADE: the 11th TEACHERS: Francisco Pérez García THEME: Time and computers Crosscurricular activity involving communication in a foreign language (English), computer sciences and art COMPETENCES: - Design by using HTML5, CSS and Javascript libraries in order to create time related objects. - Understand the diferent types of calendar (Julian, Gregorian, Islamic, Hebrew) and the role of ISO 8601. - Understand the possibilities of programming in art object with a time component (e.g. p5.js javascript library) - Understand the drawing possibilities of programming with a canvas element (e.g. canvas in HTML5) - Understand the style possibilites of programming with CSS (Cascade Style Sheet) - Understand the role of random numbers and variables in the generation of an art objects - Learn to program clocks by using mathematical funcions and coding - Learn how to use conditional statements to tell the current date and time in natural English by using real time javascript functions TYPE OF LESSON: Combined lesson TYPES OF INTERACTION: teacher – student, student – student, computer-student TEACHING TOOLS: the blackboard, the projector and a computer room with software: Sublime text code editor and the web w3schools.com to learn coding. TIME: 4 lessons of 50 minutes WARMER They are asked to review their mobiles and the internet to find this information, specially to practice coding online at w3schools.com in order to improve their coding skills by using another code editor as Sublime Text or Visual Studio Code LEARNING STRATEGY Create codes using as a code editor Sublime Text or Visual Studio Code in order to create art object related to art. FORMULATION OF THE SUBJECT Students will be informed that during this lesson they will learn some English instructions in Javascript, HTML5 and CSS to create objects to express time.
  • 2. COMMUNICATION OF KNOWLEDGE Activity 1- Programming a clock Part I - Create the Canvas The clock needs an HTML container. Create an HTML canvas: Canvas for the clock Part II - Draw a Clock Face The clock needs a clock face. Create a JavaScript function to draw a clock face:
  • 3. Clock face Part III - Draw Clock Numbers The clock needs numbers. Create a JavaScript function to draw clock numbers:
  • 4. Clock numbers Part IV - Draw Clock Hands The clock needs hands. Create a JavaScript function to draw clock hands:
  • 5. Clock hands Part V - Start the Clock To start the clock, call the drawClock function at intervals:
  • 6. Clock start Example at http://arteducation.eu/clock Activity 2. Explore the calendar converter at http://arteducation.eu/calendars and propose codes to interconvert calendars Date formats: There are many formats and many calendars. These are examples for the Gregorian calendar Date format Example ISO Date "2016-09-11" (The International Standard) Short Date "11/09/2016" Long Date “Nov 09 2016" or "09 Nov 2016" Full Date "Wednesday November 9 2016" ISO 8601 International Standard Organization rule 8601 YYYY-MM-DD or YYYYMMDD It is easer to order everything! Date Get Methods Get methods are used for getting a part of a date. Here are the most common (alphabetically):
  • 7. Method Description getDate() Get the day as a number (1-31) getDay() Get the weekday as a number (0-6) getFullYear() Get the four digit year (yyyy) getHours() Get the hour (0-23) getMilliseconds() Get the milliseconds (0-999) getMinutes() Get the minutes (0-59) getMonth() Get the month (0-11) getSeconds() Get the seconds (0-59) getTime() Get the time (milliseconds since January 1, 1970) Date Set Methods Set methods are used for setting a part of a date. Here are the most common (alphabetically): Method Description setDate() Set the day as a number (1-31) setFullYear() Set the year (optionally month and day) setHours() Set the hour (0-23) setMilliseconds() Set the milliseconds (0-999) setMinutes() Set the minutes (0-59) setMonth() Set the month (0-11) setSeconds() Set the seconds (0-59) setTime() Set the time (milliseconds since January 1, 1970) Compare Dates Dates can easily be compared.
  • 8. The following example compares today's date with January 14, 2100: Code example Activity 3. Understandthe time zones creatingan Erasmus clock
  • 9. Create an art clock Change the functions previously explained in order to create an art clock