| | 249 | =head1 METHODS |
| | 250 | |
| | 251 | =head2 compare( a => $a, b => $b, blog => $blog ) |
| | 252 | |
| | 253 | Compares two timestamp strings and returns negative valye, 0, or positive value |
| | 254 | depending on whether the "a" argument is less than, equal to, or greater than |
| | 255 | the "b" argument. |
| | 256 | |
| | 257 | You 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 |
| | 259 | returned from time method), or MT::DateTime object. In those cases, you must |
| | 260 | specify both value and type in a hash, for example: |
| | 261 | |
| | 262 | MT::DateTime->compare( blog => $blog, |
| | 263 | a => '20041231123456', b => { value => time(), type => 'epoch' } ); |
| | 264 | |