Displaying 20 results from an estimated 20000 matches similar to: "Convert to time from epoch"
2009 Jul 16
2
Problem using strptime
Hello
I am trying to read a date and time from a file and convert them to POSIXct
using strptime()
the dates are stored in t which is a factor
This the code I am using to illustarte
> t[1]
[1] 07/14/2009 13:41:00
10 Levels: 07/14/2009 13:41:00 07/14/2009 13:42:00 ... 07/15/2009 07:12:00
> a=t[1]
> a
[1] 07/14/2009 13:41:00
10 Levels: 07/14/2009 13:41:00 07/14/2009 13:42:00 ...
2003 Feb 27
2
epoch time conversion in R
I have a data file where each entry is indexed by the time in seconds since
epoch (e.g. 1046315697). Is there an easy way to convert this time value into
a more friendly time (such as Month-Year) when plotting it?
I searched through the manual, mailing lists, and functions like as.POSIXct
and strptime, but didn't find what I need.
Thanks,
Sharad.
2014 Jul 09
4
Conversion date a numeric y vuelta a date
Hola a todos:
Debe de ser una tonterĂa, pero no consigo saber porque la siguiente linea
no devuelve la fecha actual:
as.Date(as.numeric(Sys.time()))
He hecho esa prueba porque no consigo pasar un numero convertido a partir
de una fecha y modificado a fecha de nuevo.
Gracias por adelantado.
Un saludo,
Alberto.
[[alternative HTML version deleted]]
2012 Jan 27
2
PosixCT subsecond accuracy
A sample of the data I have is:
> head(sensor)
logged_on accx accy accz compassx compassy compassz
gyrox gyroy gyroz
1 1326561428000 -0.4602 0.8346 0.0936 0.145508 -0.350586 0.259766
59.617390 28.521740 59.617390
2 1326561428050 -0.4212 1.0452 0.1326 0.219727 -0.321289 0.241211
88.695656 27.478260 88.695656
3 1326561428100 -0.2496 1.3416 0.2886 0.214844 -0.326172
2008 Aug 03
1
Convert date to decimal days
Hello all,
I have a quick question about formatting date strings..
I am currently debugging some Matlab code someone else wrote and since it is
so bad that I have to go through it line by line I figured that I would just
rewrite the thing in R.
The code produces plots of wave spectra with decimal days since the Epoch as
the x axis and wave period as the Y axis. I am able to convert the date
2019 Jan 29
1
[PATCH] v2v: Fix kernel disambiguation by dropping Epoch field (RHBZ#1669395).
When detecting kernels we have to list the files in the package to
find the right /boot/vmlinuz file.
In virt-v2v 1.28 we ran:
rpm -ql kernel
Because multiple kernels can be installed this gave incorrect results,
which was reported in RHBZ#1161250 and initially fixed in
commit 377bc302f11db3da4263f894c76a7d280fb25dbd. This changed the
command to:
rpm -ql [epoch:]kernel-version.release
2011 Aug 20
1
Raw epoch time from XTS
Hi,
I have a very large data set stored as an xts object.
xts is very nice about showing row labels as "human readable" dates and times.
I want the actual epoch values that are stored internally. The only way I can find to access them is one-at-a-time using the internal function: xcoredata()
Calling this in an entire column, the "R" way doesn't work. It will only
2014 Nov 17
1
[PATCH] inspection: deb: Seperate epoch field from version
Return it in the app2_epoch field of the guestfs_application2 struct
Signed-off-by: Nikos Skalkotos <skalkoto@gmail.com>
---
src/inspect-apps.c | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/inspect-apps.c b/src/inspect-apps.c
index 8e645b7..bd4e6c1 100644
--- a/src/inspect-apps.c
+++ b/src/inspect-apps.c
@@ -439,6 +439,7 @@
2019 Jul 08
2
epoch rpm el8 obsolete?
I am building a new workstation based on EL8 now. As someone else here mentioned, the raw EL8 distribution
is unusable as a workstation. Therefore I am building lot of additional packages. Today I came across a problem
with a custom package with an Epoch version, that kills the yum/dnf update process (it tries to find a "best"
package etc.). My actually question; is the RPM Epoch
2010 Nov 21
2
Counting things in a time series.
Hi,
I have a process (not in R) that records events with a time stamp. So,
I have a huge series of maybe 100,000 time stamps.
I'd like to break it up into hourly (Or daily) intervals and then count
how many events occurred in each interval. That way I can graph it.
Ideally, converting the this into a time series in R would let me do
some interesting analysis.
The data is just a list of
2013 Jan 11
1
Date time conversion bug (as.POSIXct)?
There is something wrong, I think, with the date-time conversion from a
numeric value if you use Central European Time (CET) as timezone.
Examples from R:
If I use the GMT time zone it is OK, I get the same time back from
as.POSIXct as I entered
> as.POSIXct(as.numeric(strptime("30/01/2012 13:00:00", format="%d/%m/%Y
>
2009 Jun 29
1
Hosmer Lemshaw
Hello R experts,
Is the a function to preform a Hosmer Lemshaw goodness of fit?
I am running R 2.8.
Thanks,
AlonBen-Ari
Department of Anesthesiology and CCM
Univ. Pittsburgh
[[alternative HTML version deleted]]
2008 Sep 12
2
From time-strings to Unix-Epoche-time?
Hello,
I have strings with date-/time-data from a logfile.
For a sort-by-time (and other time-related analysis)
I need something to convert the
times to the Unix-epoche-time (better also with parts
of seconds).
Is there something that does that job (or a similar conversion)
in R?
TIA,
Oliver Bandel
2007 Jan 17
5
[PATCH] Have xen dom0 still handle time of 1970
It''s come to our attention, that the time gets screwed up when set
between EPOCH and EPOCH + uptime. This may not seem important (because
we don''t live in the 70s anymore) but it makes LTP fail. LTP has a date
test that checks what happens when set to EPOCH + 100 secs + 100 nsecs,
and makes sure that it gets a proper result.
The following patches helps xen handle the case
2024 Sep 24
2
Problem with converting grib file to excel
Dear R users;
I have downloaded a grib file format (Met.grib) and I want to export its
data to excel file. Also I want to do some mathematic on some columns. But
I got error. I would be more than happy if anyone can help me to do this. I
have provided the codes and the Met.grib file in this email.
Sincerely yours
# Load the necessary libraries
> library(raster) # For reading GRIB files
2005 Apr 08
1
Why EPOCH ?
Hello
Does anybody know why is there so much packages with EPOCH cca?
What is it good for?
Petr Klima
2003 Apr 20
4
${EPOCH} and ${DATETIME} patch
Skipped content of type multipart/alternative-------------- next part --------------
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.14
diff -u -r1.14 pbx.c
--- pbx.c 19 Apr 2003 02:41:22 -0000 1.14
+++ pbx.c 21 Apr 2003 02:27:43 -0000
@@ -713,6 +713,8 @@
{
char *first,*second;
char tmpvar[80] =
2011 Feb 08
4
manipulating the Date & Time classes
Hello,
This is mostly to developers, but in case I missed something in my
literature search, I am sending this to the broader audience.
- Are there any plans in the works to make "time" classes a bit more
friendly to the rest of the "R" world? I am not suggesting to allow for
fancy functions to manipulate times, per se, or to figure out how to
properly
2011 Feb 08
4
manipulating the Date & Time classes
Hello,
This is mostly to developers, but in case I missed something in my
literature search, I am sending this to the broader audience.
- Are there any plans in the works to make "time" classes a bit more
friendly to the rest of the "R" world? I am not suggesting to allow for
fancy functions to manipulate times, per se, or to figure out how to
properly
2006 Aug 30
1
Datetime
Hi all,
I'm getting confused by date handling.
I wish to read a date from a file wich is a number of seconds since 1970
(POSIXct).
Then i wish to convert this date to a human readable form (POSIXlt)
By example :
ctDate<-1132963200 #"Wed Aug 30 14:24:37 2006"
is(ctDate)
[1] "numeric" "vector"
ctDate isn't a numeric vector, it is a