Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 996 Bytes

File metadata and controls

27 lines (19 loc) · 996 Bytes

Learning objectives

  • Know how to use time in C#.
  • Know how to get the current time.
  • Know how to perform arithmetic on times.
  • Know the difference between local time and UTC.

Out of scope

  • custom time zones
  • Noda Time
  • We are not exercising student's ability to code a cross-platform solution.

Concepts

  • time: Know how to use DateTime when time-of-day is important. Understand the difference between local time and Universal Coordinated Time). Understand the role of CultureInfo in parsing times. Understand arithmetic with DateTimes.
  • timezone: Know about time zones and their ids. Be familiar with cross-platform issues. Know how to convert dates and times between time zones. Know how to detect daylight saving time.
  • cross-platform: know how to have different code paths (selected at run-time) for Linux, Windows and Mac

Prerequisites

  • datetime
  • switch-statements
  • strings
  • if-statements