Learn R Programming

GGIR (version 3.2-0)

is_this_a_dst_night: Check whether the night starting on a calendar date has DST.

Description

Tests whether the night that follows the input calendar date is a night with day saving time (DST) and on what hour the time moved.

Usage

is_this_a_dst_night(calendar_date=c(),tz="Europe/London")

Value

dst_night_or_not

If value=0 no DST, if value=1 time moved forward, if value=-1 time moved forward

dsthour

Either the double hour or the hour that was skipped, this differs between countries

Arguments

calendar_date

Character in the format dd/mm/yyyy

tz

Time zone in "Europe/London" format.

Examples

Run this code
  test4dst = is_this_a_dst_night("23/03/2014",tz="Europe/London")

Run the code above in your browser using DataLab