Changeset 1745

Show
Ignore:
Timestamp:
04/03/08 08:22:50 (23 months ago)
Author:
fumiakiy
Message:

Wrote simple pod document.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/DateTime.pm

    r1744 r1745  
    247247MT::DateTime 
    248248 
     249=head1 METHODS 
     250 
     251=head2 compare( a => $a, b => $b, blog => $blog ) 
     252 
     253Compares two timestamp strings and returns negative valye, 0, or positive value 
     254depending on whether the "a" argument is less than, equal to, or greater than 
     255the "b" argument. 
     256 
     257You can specify scalar value to "a" and "b".  They are treated as timestamp values 
     258(e.g. 20080405123456).  You can also specify either epoch string (e.g the string 
     259returned from time method), or MT::DateTime object.  In those cases, you must 
     260specify both value and type in a hash, for example: 
     261 
     262MT::DateTime->compare( blog => $blog, 
     263    a => '20041231123456', b => { value => time(), type => 'epoch' } ); 
     264 
    249265=head1 AUTHOR & COPYRIGHT 
    250266