# Copyright (c) 2001-2006 bivio Software, Inc. All rights reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: Time.bunit,v 1.8 2009/03/13 19:27:26 nagler Exp $ Type(); DateTime()->set_test_now('3/1/2009 1:0:0', req()); [ now => '2378497 3600', from_datetime => [ ['2453740 44700'] => ['2378497 44700'], ], from_literal => [ '1:1:1' => '2378497 3661', '0101' => '2378497 3660', '010101' => '2378497 3661', '24:0:0' => '2378497 0', '125900' => '2378497 46740', '12:59:0 p.m.' => '2378497 46740', '12:59:0 a' => '2378497 3540', '1:0:0 a' => '2378497 3600', '1:0:1 p' => '2378497 46801', [undef] => UNDEF(), '24:0:0 x' => TIME(), '24:0:0 ax' => TIME(), '24:0:1' => HOUR(), '24:1:0' => HOUR(), '10:00' => '2378497 36000', '10' => '2378497 36000', '16:00:00' => '2378497 57600', '04:00:00 AM' => '2378497 14400', '04:00:00 PM' => '2378497 57600', ], to_literal => [ '2378497 57600' => '16:00', '2378497 57601' => '16:00:01', ], to_string => [ [undef] => '', ], to_literal_dammit => [ [undef] => '', '2378497 57600' => '16:00:00', '2378497 57601' => '16:00:01', ], ];