Ops.partial_time {parttime}R Documentation

Handler for Ops generics for partial_time objects

Description

Handler for Ops generics for partial_time objects

Usage

## S3 method for class 'partial_time'
Ops(e1, e2)

Arguments

e1

objects

e2

objects

Details

partial_time objects only implement binary operators == and !=. For other operators, partial_times are first converted to partial_timespans for operator evaluation.

Value

the binary operator result of partial_time e1 with e2. See Details for more information on operator behaviors.

See Also

possibly definitely

Examples

#                 when assume_tz "GMT"         when assume_tz NA
#                 ---------------------------  ---------------------------
#                 raw    possibly  definitely  raw   possibly  definitely
#                 -----  --------- ----------  ----- --------- -----------
#     1998 < 1999 TRUE   TRUE      TRUE        NA    TRUE      FALSE
#     1998 < 1997 FALSE  FALSE     FALSE       NA    TRUE      FALSE
#     1999 < 1999 NA     TRUE      FALSE       NA    TRUE      FALSE
# 1998 < 1999/1/3 TRUE   TRUE      TRUE        TRUE  TRUE      TRUE

parttime(1998) < parttime(1999)
parttime(1998) < parttime(1997)
parttime(1999) < parttime(1999)
parttime(1998) < parttime(1999, 1, 3)


[Package parttime version 0.1.2 Index]