Debian Codegraph @

lib/DateTime/TimeZone/Local/VMS.pm

raw
1 package DateTime::TimeZone::Local::VMS;
2
3 use strict;
4 use warnings;
5 use namespace::autoclean;
6
7 our $VERSION = '2.70';
8
9 use parent 'DateTime::TimeZone::Local';
10
11 sub Methods { return qw( FromEnv ) }
12
13 sub EnvVars {
14 return qw( TZ SYS$TIMEZONE_RULE SYS$TIMEZONE_NAME UCX$TZ TCPIP$TZ );
15 }
16
17 1;
18
19 # ABSTRACT: Determine the local system's time zone on VMS
20
21 __END__
22
23 =pod
24
25 =encoding UTF-8
26
27 =head1 NAME
28
29 DateTime::TimeZone::Local::VMS - Determine the local system's time zone on VMS
30
31 =head1 VERSION
32
33 version 2.70
34
35 =head1 SYNOPSIS
36
37 my $tz = DateTime::TimeZone->new( name => 'local' );
38
39 my $tz = DateTime::TimeZone::Local->TimeZone();
40
41 =head1 DESCRIPTION
42
43 This module provides methods for determining the local time zone on a VMS
44 platform.
45
46 NOTE: This is basically a stub pending an implementation by someone who knows
47 something about VMS.
48
49 =head1 HOW THE TIME ZONE IS DETERMINED
50
51 This class tries the following methods of determining the local time zone:
52
53 =over 4
54
55 =item * %ENV
56
57 We check the following environment variables:
58
59 =over 8
60
61 =item * TZ
62
63 =item * SYS$TIMEZONE_RULE
64
65 =item * SYS$TIMEZONE_NAME
66
67 =item * UCX$TZ
68
69 =item * TCPIP$TZ
70
71 =back
72
73 =back
74
75 =head1 SUPPORT
76
77 Bugs may be submitted at L<https://github.com/houseabsolute/DateTime-TimeZone/issues>.
78
79 =head1 SOURCE
80
81 The source code repository for DateTime-TimeZone can be found at L<https://github.com/houseabsolute/DateTime-TimeZone>.
82
83 =head1 AUTHOR
84
85 Dave Rolsky <[email protected]>
86
87 =head1 COPYRIGHT AND LICENSE
88
89 This software is copyright (c) 2026 by Dave Rolsky.
90
91 This is free software; you can redistribute it and/or modify it under
92 the same terms as the Perl 5 programming language system itself.
93
94 The full text of the license can be found in the
95 F<LICENSE> file included with this distribution.
96
97 =cut