View source: R/01genericSupport.r
amigaDateToRaw | R Documentation |
This function converts date-time objects into raw data conform Amiga file system specifications.
amigaDateToRaw(x, format = c("long", "short"), tz = "UTC")
x |
A ( |
format |
a |
tz |
A |
The Amiga file system stores date time objects as three unsigned short (16 bit) or long (32 bit) integers. Where the values are number of days, minutes and ticks (fiftieth of a second) since 1978-01-01 respectively.
As these values are always positive, only date time values on or after
1978-01-01 are allowed. The inverse of this function can be achieved
with rawToAmigaDate
.
returns raw
data reflecting the date-time objects conform
the Amiga file system specifications.
Pepijn de Vries
Other raw.operations:
amigaIntToRaw()
,
displayRawData()
,
rawToAmigaDate()
,
rawToAmigaInt()
,
rawToBitmap()
## Note that using the same date-time with different timezones will
## result in different raw data. The time zone is not stored.
amigaDateToRaw(as.POSIXct("1978-01-01 13:30", tz = "UTC"))
amigaDateToRaw(as.POSIXct("1978-01-01 13:30", tz = "CET"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.