[R-SIG-Finance] fCalendar's time seems incorrect for some FinCenters

Enrico Schumann enricoschumann at yahoo.de
Mon Jun 2 09:43:29 CEST 2008


i am not an expert in time/date issues, but reading your post and looking a
bit on the web got me interested. the offsets (in seconds) seem to be
defined in the respective financial centre function, eg 

require(fCalendar)
Singapore

where the latest offset should be 27000 sec = 7.5 hours. 

according to http://www.math.nus.edu.sg/aslaksen/teaching/timezone.html the
offset is now 8 hours (28800sec) which seems not to have been in the
tzdata-base used for fCalendar. but again, i am not an expert, maybe there
is a reason for that...


best,enrico 

-----Ursprüngliche Nachricht-----
Von: r-sig-finance-bounces at stat.math.ethz.ch
[mailto:r-sig-finance-bounces at stat.math.ethz.ch] Im Auftrag von Daniel Wolff
Gesendet: Sonntag, 1. Juni 2008 16:17
An: R-SIG-Finance at stat.math.ethz.ch
Betreff: [R-SIG-Finance] fCalendar's time seems incorrect for some
FinCenters

Hello, 

having some trouble getting Sys.timeDate(x) to return the correct time for
some FinCenters. 

Here is a demonstration:

 

> require(fCalendar)

> x <- 
> c("HongKong","Singapore","Seoul","Tokyo","Sydney","London","NewYork")

> lapply(x,Sys.timeDate)

[[1]]

HongKong

[1] [2008-06-01 23:12:08]

 

[[2]]

Singapore

[1] [2008-06-01 21:42:08]

 

[[3]]

Seoul

[1] [2008-06-02 00:12:08]

 

[[4]]

Tokyo

[1] [2008-06-02 00:12:08]

 

[[5]]

Sydney

[1] [2008-06-02 00:12:08]

 

[[6]]

London

[1] [2008-06-01 15:12:08]

 

[[7]]

NewYork

[1] [2008-06-01 10:12:08]

 

> 

New York is correct

London is correct

Sydney is correct

but

Tokyo off by +1hr

Singapore is off by -0.5hr

Hong Kong is off by +1hr

Seoul is off by +1hr

 

Any tips on how to correct? 

 

Thank you


	[[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only.
-- If you want to post, subscribe first.
No virus found in this incoming message.
Checked by AVG. 

31.05.2008
12:25



More information about the R-SIG-Finance mailing list