View source: R/httpdate_as_season.R
httpdate_as_season | R Documentation |
Calculate the "turtle season" (FY) from a given UTC HTTP datestring
httpdate_as_season(datestring)
datestring |
(character) A UTC HTTP date as character string, e.g. '2016-11-20T21:46:57.163000Z' with time zone included |
Return the earliest year of the season start. E.g. any date in the fiscal year 2017/18 will be season 2017. Care has to be taken to calculate the offset through days rather than months, which can result in invalid dates such as Feb 30 or June 31.
The season as int, e.g. 2017
Other helpers:
absolute_angle()
,
add_dates()
,
datetime_as_isoweek()
,
datetime_as_seasonweek()
,
datetime_as_season()
,
datetime_as_turtle_date()
,
exclude_training_species()
,
exclude_training_surveys()
,
extract_possibly()
,
fdate_as_tdate()
,
filter_missing_site()
,
filter_missing_survey()
,
filter_surveys_missing_end()
,
filter_surveys_requiring_qa()
,
filter_wastd_season()
,
get_more()
,
gj_linestring_to_st_linestring()
,
httpdate_as_gmt08_turtle_date()
,
httpdate_as_gmt08()
,
humanize()
,
join_tsc_sites()
,
leaflet_basemap()
,
map_chr_hack()
,
mean_bearing()
,
mis_bearing()
,
odkc_works()
,
read_table()
,
sentencecase()
,
sf_as_tbl()
,
tdate_as_fdate()
,
tracks_as_geojson()
,
tun()
,
urlize()
,
verify_odkc_turtledata()
,
verify_wamtram_data()
,
verify_wastd_data()
,
wastd_works()
,
wastdr_msg_abort()
,
wastdr_msg_info()
,
wastdr_msg_noop()
,
wastdr_msg_success()
,
wastdr_msg_warn()
,
wastdr_settings()
,
wastdr_setup()
# These datetimes are turtle season 2017: httpdate_as_season("2017-06-30T15:59:59Z") # 2016 httpdate_as_season("2017-06-30T16:00:00Z") # 2017 httpdate_as_season("2017-08-30T06:38:43Z") # 2017
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.