SlideShare a Scribd company logo
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

PDF
Ruby Time & Date
DOCX
The arrow of time
PDF
The arrow of time
PDF
About time
DOC
Curricula
PPT
Feel the color
PPTX
Light and expression
DOC
Feel the color
Ruby Time & Date
The arrow of time
The arrow of time
About time
Curricula
Feel the color
Light and expression
Feel the color

Viewers also liked (20)

DOCX
Feelings and computers
DOCX
Feelings and molecules
DOCX
Lesson plan environment 2
DOCX
Lesson plan insects
PDF
Lesson plan numbers leu alex dear
DOCX
Numbers in the compositional structure
PDF
Lesson leu alex numbers_highschool_lvl
PPTX
Erasmus environment - dragons den advert
DOCX
Developing english-through-art-oriented-activities-1 final(1)
PPTX
Erasmus the human body - lesson 1
PPTX
Erasmus the human body - lesson 2 youtube
PPTX
Erasmus the human body - lesson 3
PPTX
Erasmus the human body - lesson 4
PPTX
Erasmus environment - trash to treasure
PPTX
Annex 9 body sculpture
PPTX
Annex 5 conceptual maps in english
DOCX
Lesson plan Iulia Ionescu
PPTX
Portraits puzzle
PPTX
Annex 2 matching exercise
PDF
Lectie feelings
Feelings and computers
Feelings and molecules
Lesson plan environment 2
Lesson plan insects
Lesson plan numbers leu alex dear
Numbers in the compositional structure
Lesson leu alex numbers_highschool_lvl
Erasmus environment - dragons den advert
Developing english-through-art-oriented-activities-1 final(1)
Erasmus the human body - lesson 1
Erasmus the human body - lesson 2 youtube
Erasmus the human body - lesson 3
Erasmus the human body - lesson 4
Erasmus environment - trash to treasure
Annex 9 body sculpture
Annex 5 conceptual maps in english
Lesson plan Iulia Ionescu
Portraits puzzle
Annex 2 matching exercise
Lectie feelings
Ad

Similar to Time and computers (20)

PDF
SessionSeven_WorkingWithDatesandTime
PPT
Php date & time functions
PPT
Ddpz2613 topic9 java
PPTX
Waukesha One Coding Presentation
PPT
9781305078444 ppt ch07
PDF
DAA-LAB-MANFSDSDFSDFSDSDSFDSDAA LAB MANUAL FOR BTECH STUDENTSUAL2020-1.pdf
PPTX
FYBSC IT Web Programming Unit III Core Javascript
PDF
Jianjun(Winston)'s Resume
PDF
Object oriented programming in r
PPTX
Current Toolbox and Pedagogies - October 09
PPTX
calendar and clock files (1).pptx of btech
PPTX
2.5 clock, desktop, and dictionary objects
PDF
Download full ebook of p instant download pdf
PDF
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
PDF
<img src="../i/r_14.png" />
PPTX
TypeScript and SharePoint Framework
PDF
Dates and Times in Java 7 and Java 8
DOC
Ex11 lesson plan
PPT
Quadratics Querry
SessionSeven_WorkingWithDatesandTime
Php date & time functions
Ddpz2613 topic9 java
Waukesha One Coding Presentation
9781305078444 ppt ch07
DAA-LAB-MANFSDSDFSDFSDSDSFDSDAA LAB MANUAL FOR BTECH STUDENTSUAL2020-1.pdf
FYBSC IT Web Programming Unit III Core Javascript
Jianjun(Winston)'s Resume
Object oriented programming in r
Current Toolbox and Pedagogies - October 09
calendar and clock files (1).pptx of btech
2.5 clock, desktop, and dictionary objects
Download full ebook of p instant download pdf
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
<img src="../i/r_14.png" />
TypeScript and SharePoint Framework
Dates and Times in Java 7 and Java 8
Ex11 lesson plan
Quadratics Querry
Ad

More from Francisco Perez (20)

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

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Lesson notes of climatology university.
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Presentation on HIE in infants and its manifestations
Cell Types and Its function , kingdom of life
Anesthesia in Laparoscopic Surgery in India
Supply Chain Operations Speaking Notes -ICLT Program
202450812 BayCHI UCSC-SV 20250812 v17.pptx
01-Introduction-to-Information-Management.pdf
Computing-Curriculum for Schools in Ghana
O7-L3 Supply Chain Operations - ICLT Program
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Lesson notes of climatology university.
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Complications of Minimal Access Surgery at WLH
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Presentation on HIE in infants and its manifestations

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