| 1 | ### Change History | ||||||||||
| 2 | # 1998-12-02 Created. -Simon | ||||||||||
| 3 | |||||||||||
| 4 | package Data::Quantity::Time::DayOfMonth; | ||||||||||
| 5 | |||||||||||
| 6 | 1 | require 5; | |||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use vars qw( $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | $VERSION = 0.001; | |||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use Data::Quantity::Number::Integer '-isasubclass'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | # undef = Data::Quantity::Time::DayOfMonth->scale(); | ||||||||||
| 16 | 0 | ▶ | sub scale { | ||||||||
|
Subroutine
scale: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | return 'DayOfMonth'; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | # $value = Data::Quantity::Time::DayOfMonth->readable_value($number) | ||||||||||
| 21 | 5 | ▶ | sub readable_value { | ||||||||
|
Subroutine
readable_value: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 22 | 5 | my $class_or_item = shift; | |||||||||
| 23 | 5 | my $value = shift; | |||||||||
| 24 | |||||||||||
| 25 | 5 | return $value; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | # $padded = $quantity->zero_padded(); | ||||||||||
| 29 | 0 | ▶ | sub zero_padded { | ||||||||
|
Subroutine
zero_padded: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 30 | 0 | my $date = shift; | |||||||||
| 31 | 0 | ▶ | $date->SUPER::zero_padded( scalar @_ ? @_ : 2 ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 1 | 1; | |||||||||