F
Fischer Krisztián
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I created a range of Time objects. My problem (?) is, that the range's
min() and max() methods return their values in a different format.
I made the following test:
?> t1 = Time.utc(2007,7,17,10,00)
=> Tue Jul 17 10:00:00 UTC 2007
=> Tue Jul 17 12:00:00 UTC 2007
=> Tue Jul 17 10:00:00 UTC 2007..Tue Jul 17 12:00:00 UTC 2007
=> Tue Jul 17 10:00:00 UTC 2007
=> Tue Jul 17 14:00:00 +0200 2007
As you may see r.max returns the correct value, however it is in a
different time format as r.min's return value (and different from the
initial value).
If I use these values in a user interface, the max value must be
converted to a UTC time with r.max.utc before i can format it with
strftime().
Do you think this is a bug, or should i read more ruby literature?
I'm pretty new to ruby, so please don't slap me in the face for this.
Thank you,
Chris
- --
Fischer Krisztián
Borganization Kft.
Tel: (+36) 70/384-383-5
Tel: (+36) 1/3360547
email: (e-mail address removed)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGnMz46VUohGTtAQYRAl76AJ4jZH+mHmJzQWqn17GUJAl6yDi8lgCgxBZj
anm75OzaJYA1v1hQyrh+w3Y=
=cXVu
-----END PGP SIGNATURE-----
Hash: SHA1
Hi!
I created a range of Time objects. My problem (?) is, that the range's
min() and max() methods return their values in a different format.
I made the following test:
?> t1 = Time.utc(2007,7,17,10,00)
=> Tue Jul 17 10:00:00 UTC 2007
=> Tue Jul 17 12:00:00 UTC 2007
=> Tue Jul 17 10:00:00 UTC 2007..Tue Jul 17 12:00:00 UTC 2007
=> Tue Jul 17 10:00:00 UTC 2007
=> Tue Jul 17 14:00:00 +0200 2007
As you may see r.max returns the correct value, however it is in a
different time format as r.min's return value (and different from the
initial value).
If I use these values in a user interface, the max value must be
converted to a UTC time with r.max.utc before i can format it with
strftime().
Do you think this is a bug, or should i read more ruby literature?
I'm pretty new to ruby, so please don't slap me in the face for this.
Thank you,
Chris
- --
Fischer Krisztián
Borganization Kft.
Tel: (+36) 70/384-383-5
Tel: (+36) 1/3360547
email: (e-mail address removed)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGnMz46VUohGTtAQYRAl76AJ4jZH+mHmJzQWqn17GUJAl6yDi8lgCgxBZj
anm75OzaJYA1v1hQyrh+w3Y=
=cXVu
-----END PGP SIGNATURE-----