Skip to content
Back to formatted view

Raw Message

Message-ID: <6006BB39-8D43-4F1C-BBBF-97D1B6324DF2@dcn.davis.ca.us>
Date: 2022-07-18T04:34:44Z
From: Jeff Newmiller
Subject: Date and Time
In-Reply-To: <FE9F1B27-D8A6-4C77-956D-51D05CA45498@me.com>

Maybe this [1] will help? Or just read ?strptime...

You can also calculate sunrise/sunset (crepuscule) using maptools, but you need to be careful with timezones.

[1] https://jdnewmil.github.io/time-2018-10/MoreDatetimeHowto.html

On July 17, 2022 8:47:19 PM PDT, Gregory Coats via R-help <r-help at r-project.org> wrote:
>For the year from 2022-01-01 to 2022-12-31, I computed the sunrise and sunset times for Reston, Virginia, USA. I am seeking the syntax to direct R to read in these dates and times, and then graphical plot the sunrise and sunset times for each day in the year 2022. How do I tell R that I store the Sunrise Date and Time like this?
>YYYY-mm-dd HH:MM:SS
>2022-01-01  7:28:10
>2022-01-02  7:28:17
>Greg Coats
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.