=encoding utf8 =head1 NAME Locale::CLDR::Locales::Ne::Any::In - Package for language Nepali =cut package Locale::CLDR::Locales::Ne::Any::In; # This file auto generated from Data\common\main\ne_IN.xml # on Sun 3 Dec 10:30:42 am GMT use strict; use warnings; use version; our $VERSION = version->declare('v0.34.4'); use v5.10.1; use mro 'c3'; use utf8; use if $^V ge v5.12.0, feature => 'unicode_strings'; use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); use Moo; extends('Locale::CLDR::Locales::Ne::Any'); has 'day_period_data' => ( is => 'ro', isa => CodeRef, init_arg => undef, default => sub { sub { # Time in hhmm format my ($self, $type, $time, $day_period_type) = @_; $day_period_type //= 'default'; SWITCH: for ($type) { if ($_ eq 'gregorian') { if($day_period_type eq 'default') { return 'midnight' if $time == 0; return 'noon' if $time == 1200; return 'afternoon1' if $time >= 1200 && $time < 1600; return 'afternoon2' if $time >= 1600 && $time < 1900; return 'evening1' if $time >= 1900 && $time < 2200; return 'morning1' if $time >= 400 && $time < 1200; return 'night1' if $time >= 2200; return 'night1' if $time < 400; } if($day_period_type eq 'selection') { return 'afternoon1' if $time >= 1200 && $time < 1600; return 'afternoon2' if $time >= 1600 && $time < 1900; return 'evening1' if $time >= 1900 && $time < 2200; return 'morning1' if $time >= 400 && $time < 1200; return 'night1' if $time >= 2200; return 'night1' if $time < 400; } last SWITCH; } } } }, ); around day_period_data => sub { my ($orig, $self) = @_; return $self->$orig; }; has 'eras' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { 'gregorian' => { }, } }, ); has 'date_formats' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { 'gregorian' => { }, } }, ); has 'time_formats' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { 'gregorian' => { 'full' => q{h:mm:ss a zzzz}, 'long' => q{h:mm:ss a z}, 'medium' => q{h:mm:ss a}, 'short' => q{h:mm a}, }, } }, ); has 'datetime_formats' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { 'gregorian' => { }, } }, ); has 'datetime_formats_available_formats' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { } }, ); has 'datetime_formats_append_item' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { } }, ); has 'datetime_formats_interval' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { } }, ); has 'time_zone_names' => ( is => 'ro', isa => HashRef, init_arg => undef, default => sub { { 'India' => { short => { 'standard' => q#IST#, }, }, } } ); no Moo; 1; # vim: tabstop=4