• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/CPANInternal-140/DateTime/lib/

Lines Matching defs:second

148       second => { type => SCALAR, default => 0,
205 $class->_time_as_seconds( @p{ qw( hour minute second ) } );
224 $self->_handle_offset_modifier( $p{second} );
228 if ( $p{second} > 59 )
232 # second does not occur in the second given to new()
235 $p{second} - 59 )
238 Carp::croak( "Invalid second value ($p{second})\n" );
252 qw( year month day hour minute second nanosecond
268 my $second = shift;
279 if ( $second < 60 && $offset > 0 )
286 elsif ( $second == 60
308 if ( $second < 60 )
315 elsif ( $second == 60 && $self->{local_rd_secs} == SECONDS_PER_DAY + $offset )
408 @{ $self->{local_c} }{ qw( hour minute second ) } =
423 @{ $self->{utc_c} }{ qw( hour minute second ) } =
442 return @{ $self->{utc_c} }{ qw( hour minute second ) };
468 @args{ qw( second minute hour day month year ) } =
510 # on the given value. If the object _is_ on a leap second, we'll
522 @args{ qw( hour minute second ) } =
526 $args{second} += $leap_seconds;
765 sub second {
766 Carp::carp('second() is a read-only accessor') if @_ > 1;
767 return $_[0]->{local_c}{second};
769 *sec = \&second;
771 sub fractional_second { $_[0]->second + $_[0]->nanosecond / MAX_NANOSECONDS }
815 $self->{local_c}{second} );
968 'S' => sub { sprintf( '%02d', $_[0]->second ) },
1106 qr/(ss?)/ => sub { $_[0]->_zero_padded_number( $1, $_[0]->second() ) },
1111 my $val = sprintf( "%.${l}f", $_[0]->fractional_second() - $_[0]->second() );
1342 $bigger->second, $smaller->second,
1653 $self->_handle_offset_modifier( $self->second );
1679 $self->_handle_offset_modifier( $self->second + $deltas{seconds} );
1826 sub set_second { $_[0]->set( second => $_[1] ) }
1838 second => 0,
1864 foreach my $f ( qw( year month day hour minute second nanosecond ) )
1893 $self->_handle_offset_modifier( $self->second, 1 );
2001 second => 47,
2019 $second = $dt->second; # 0-61 (leap seconds!) - also sec
2102 All I<time>-related numbers such as hour, minute, and second are
2185 "year", "month", "day", "hour", "minute", "second", "nanosecond".
2193 second => 47,
2198 DateTime validates the "month", "day", "hour", "minute", and "second",
2220 =item * second
2238 see that it really matches a valid leap second.
2242 "second", and "nanosecond" parameters all default to 0.
2291 second => 0,
2330 1 second and 123,456,789 nanoseconds.
2510 is. For example, June 9, 2003 is the second Monday of the month, and
2553 =item * $dt->second()
2557 Returns the second, from 0..61. The values 60 and 61 are used for
2562 Returns the second, as a real number from 0.0 until 61.999999999
2568 Returns the fractional part of the second as milliseconds (1E-3 seconds).
2570 Half a second is 500 milliseconds.
2574 Returns the fractional part of the second as microseconds (1E-6
2577 Half a second is 500_000 microseconds. This value will be rounded to
2582 Returns the fractional part of the second as nanoseconds (1E-9 seconds).
2584 Half a second is 500_000_000 nanoseconds.
2590 Returns the hour, minute, and second, all zero-padded to two digits.
2822 "month", "week", "day", "hour", "minute", or "second". For example,
2824 minute, and second all become 0.
2955 between two datetimes, since units larger than a second do not
3282 hour => 23, minute => 59, second => 60,
3296 hour => 23, minute => 59, second => 30,
3536 The second as a decimal number (range 00 to 61).
3836 The second.