Craig A. Berry
2009-02-21 20:49:46 UTC
In perl.git, the branch blead has been updated
<http://perl5.git.perl.org/perl.git/commitdiff/ec4d613228615e5a9cc9bc190eb78ec02aadcda0?hp=3aaf6557bbee1b4253a365839e7074c1efc18213>
- Log -----------------------------------------------------------------
commit ec4d613228615e5a9cc9bc190eb78ec02aadcda0
Author: Craig A. Berry <***@mac.com>
Date: Sat Feb 21 14:46:27 2009 -0600
Use "system" gmtime in time64 on VMS so C<vmsish 'time'> pragma works.
It's not really the system gmtime; it's the homegrown one in vms/vms.c
that checks hints and does shifting between UTC and local time when
requested.
-----------------------------------------------------------------------
Summary of changes:
time64_config.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/time64_config.h b/time64_config.h
index 4032acd..6a1cd9d 100644
--- a/time64_config.h
+++ b/time64_config.h
@@ -60,10 +60,13 @@
USE_SYSTEM_GMTIME
Should we use the system functions if the time is inside their range?
Your system localtime() is probably more accurate, but our gmtime() is
- fast and safe.
+ fast and safe. Except on VMS, where we need the homegrown gmtime()
+ override to shift between UTC and local for the vmsish 'time' pragma.
*/
#define USE_SYSTEM_LOCALTIME
-/* #define USE_SYSTEM_GMTIME */
+#ifdef VMS
+# define USE_SYSTEM_GMTIME
+#endif
/* SYSTEM_LOCALTIME_MAX
--
Perl5 Master Repository
<http://perl5.git.perl.org/perl.git/commitdiff/ec4d613228615e5a9cc9bc190eb78ec02aadcda0?hp=3aaf6557bbee1b4253a365839e7074c1efc18213>
- Log -----------------------------------------------------------------
commit ec4d613228615e5a9cc9bc190eb78ec02aadcda0
Author: Craig A. Berry <***@mac.com>
Date: Sat Feb 21 14:46:27 2009 -0600
Use "system" gmtime in time64 on VMS so C<vmsish 'time'> pragma works.
It's not really the system gmtime; it's the homegrown one in vms/vms.c
that checks hints and does shifting between UTC and local time when
requested.
-----------------------------------------------------------------------
Summary of changes:
time64_config.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/time64_config.h b/time64_config.h
index 4032acd..6a1cd9d 100644
--- a/time64_config.h
+++ b/time64_config.h
@@ -60,10 +60,13 @@
USE_SYSTEM_GMTIME
Should we use the system functions if the time is inside their range?
Your system localtime() is probably more accurate, but our gmtime() is
- fast and safe.
+ fast and safe. Except on VMS, where we need the homegrown gmtime()
+ override to shift between UTC and local for the vmsish 'time' pragma.
*/
#define USE_SYSTEM_LOCALTIME
-/* #define USE_SYSTEM_GMTIME */
+#ifdef VMS
+# define USE_SYSTEM_GMTIME
+#endif
/* SYSTEM_LOCALTIME_MAX
--
Perl5 Master Repository