convert.datecodes: convert.datecodes

Description Usage Arguments Value Author(s) See Also Examples

Description

This function take a chron object x and extract required data

Usage

1

Arguments

x

= a chron date object

y

= the value to be extracted x, acceptable values include 'chron', 'year','month','day','week','julian','julian.ref.2000','tripcode'

Value

z = the requested date part

Author(s)

unknown, <unknown>@dfo-mpo.gc.ca

See Also

Other date functions: chron2datestamp, date_picker, dayofyear, get.day, get_day

Examples

1
2
3
4
5
t=Sys.Date()
convert.datecodes(t,'year')
[1] 2016
convert.datecodes(t,'week')
[1] 25

Beothuk/bio.utilities documentation built on May 5, 2019, 1:39 p.m.