[R] Convert time zone to difference from Coordinated

Tim.Williams at ucb.com Tim.Williams at ucb.com
Thu Sep 4 16:57:30 CEST 2014


Thank you for your reply.  %z fits the bill perfectly.



Apologies for my breach of etiquette on my first post to the list.



-          Tim

R 3.1.1 on Windows 7 OS



From: Prof Brian Ripley <ripley at stats.ox.ac.uk>

To: r-help at r-project.org

Subject: Re: [R] Convert time zone to difference from Coordinated

                Universal Time

Message-ID: <54080C8F.4030603 at stats.ox.ac.uk>

Content-Type: text/plain; charset=windows-1252; format=flowed



On 04/09/2014 02:27, Tim.Williams at ucb.com wrote:

> Hello everyone,

>

> I want to convert times provided by Sys.time()  to use  the difference from Coordinated Universal Time instead of the character abbreviation.

>

> For example, instead of:

> 2014-09-03 21:12:35 EDT

>

> I want the value as:

> 2004-09-03 13:20:00-04:00

>

> Is there a way to do this with strftime() ?



On some systems.  Although the posting guide required it, you did not

provide information on yours.



Please do read the help page for yourself -- %z is relevant.

________________________________
UCB BIOSCIENCES, Inc.
Mail P.O. Box 110167 - Research Triangle Park - NC 27709 - USA
Via Courier 8010 Arco Corporate Drive - Suite 100 - Raleigh - NC 27617 - USA
Phone +1 919 767 2555 - Fax +1 919 767 2570

(Ref: #*UBI0111) [Ref-UBI0111]
________________________________
Legal Notice: This electronic mail and its attachments a...{{dropped:16}}



More information about the R-help mailing list