Convert a time to year, month, day, hours, minutes, seconds local time.


d <- cst2hms(tag, cst, d3, TAGON, GMT2LOC)   # R

This function is used to convert a time in CST (seconds since start of recording) to year, month, day, hours, minutes, seconds local time.

Input var Description Units Default value
tag is tag id string eg zc11_267aN/AN/A
cst is a scalar or a vector of times to convert, in seconds since start of recording.N/AN/A
d3 is 0 if the tag was a dtag2, or 1 if a d3 (if 1, then it will be assumed that the TAGON in the cal file is in UTC and GMT2LOC will be used to covert to local).N/AN/A
TAGON is a vector with tagon time as [yyyy mm dd hh mm ss], in case there is no cal file for this tag available.N/AN/A
GMT2LOC is an optional conversion factor for GMT to local time, if d3=1 and tagon is given then GMT2LOC should be given as well.N/AN/A
Output var Description Units
d is the output for a date/time string which is a matrix of strings where row n is a string indicating the local date and time for entry n of csts. N/A
cst2hms("hi", c(1:2), 1, c(1111,11,11,11,11,11), 5)
Returns: "1111-11-11 16:11:12 LMT" "1111-11-11 16:11:13 LMT"

bugs@animaltags.org Last modified: 24 July 2017

  • tagwiki/tools/constants/cst2hms.r.txt
  • Last modified: 2017/07/27 19:16
  • by das39