datetime: Set or get the datetime slot.

Description Usage Arguments Value Methods (by class) See Also Examples

Description

Set or get the character string with date and time when the photograph was taken.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
datetime(x)

## S4 method for signature 'CanopyPhoto'
datetime(x)

## S4 method for signature 'character'
datetime(x)

## S4 replacement method for signature 'CanopyPhoto,character'
datetime(x) <- value

Arguments

x

CanopyPhoto or character.

value

Character. The only valid formats for the datetime slot are: yyyy/mm/dd hh:mm:ss or yyyy-mm-dd hh:mm:ss

Value

character.

Methods (by class)

See Also

loadPhoto.

Examples

1
2
3
4
5
6
7
8
9
x <- loadPhoto()
datetime(x)
datetime(x) <- "1980-11-20 14:00:00"
datetime(x)

## Not run: 
  datetime(x) <- "an error"

## End(Not run)

GastonMauroDiaz/caiman documentation built on Jan. 22, 2022, 4:43 a.m.