Name : perl-Time-Moment-Role-Strptime
| |
Version : 0.001
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-03 19:17:41
|
Group : Development/Libraries/Perl
| Source RPM : perl-Time-Moment-Role-Strptime-0.001-lp156.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Strptime constructor for Time::Moment
|
Description :
This role composes the strptime method, which parses the input string according to a strptime(3) format, and constructs a Time::Moment object.
By default the returned Time::Moment object is in UTC (possibly adjusted by a parsed offset); to interpret the parsed time in another time zone, you can use Time::Moment::Role::TimeZone:
use Time::Moment; use Role::Tiny ();
my $class = Role::Tiny->create_class_with_roles(\'Time::Moment\', \'Time::Moment::Role::Strptime\', \'Time::Moment::Role::TimeZone\'); my $moment = $class->strptime($input, $format)->with_system_offset_same_local;
use DateTime::TimeZone::Olson \'olson_tz\'; my $tz = olson_tz(\'America/Los_Angeles\'); my $moment = $class->strptime($input, $format)->with_time_zone_offset_same_local($tz);
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |