Created
April 24, 2019 17:01
-
-
Save yaasita/7342892b42d92f687ca5ef8878626d2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use feature qw(:5.10); | |
use utf8; | |
use Date::Japanese::Era; | |
binmode STDOUT, ":utf8"; | |
my $era = Date::Japanese::Era->new(2019, 5, 1); | |
say $era->name, $era->year,"年"; | |
# 令和1年 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment