Skip to contents

Converting SQUIDs back to timestamps and dates/times

Usage

squids_to_datetime(x, tz = "UTC")

squids_to_timestamp(x)

Arguments

x

A vector of one or more SQUIDs

tz

The timezone to use

Value

A vector of one or more timestamps or POSIXct date/time objects

Examples

exampleSQUID <-
  squids::squids();

### Timestamp (second since UNIX Epoch,
###            1970-01-01, 00:00:00 UTC)
squids::squids_to_timestamp(
  exampleSQUID
);
#> [1] 1749068339

squids::squids_to_datetime(
  exampleSQUID
);
#> [1] "2025-06-04 20:18:58 UTC"

### In Central European Time
squids::squids_to_datetime(
  exampleSQUID,
  tz = "CET"
);
#> [1] "2025-06-04 22:18:58 CEST"