time2date: Date time conversion tools

Description Usage Arguments Details Value Author(s) Examples

View source: R/time2date.R

Description

Date time conversion tools, useful in connection with package etasFLP for earthquake description. Base date is Jan. 1st 1900.

Usage

1
2
3

Arguments

t

seconds elapsed from 1900-1-1.

timestring

A time string.

Details

time2date converts sequential time in seconds into character string; timecharunique2seq converts character times of catalogs into sequential time (seconds elapsed from the base date): the input is a single string.

Value

time2date returns a character string; timecharunique2seq returns a list:

char

the input string.

sec

seconds elapsed from the base date.

day

days elapsed from the base date.

Author(s)

Marcello Chiodi

Examples

1
2
3
4
5
6
## Not run: 
tchar="1960-11-06 11:09:35.000"
tsec =timecharunique2seq(tchar)[["sec"]]
time2date(tsec)

## End(Not run)

etasFLP documentation built on May 1, 2019, 6:48 p.m.