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 <rip...@stats.ox.ac.uk> To: r-help@r-project.org Subject: Re: [R] Convert time zone to difference from Coordinated Universal Time Message-ID: <54080c8f.4030...@stats.ox.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed On 04/09/2014 02:27, tim.willi...@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}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.