def test_datetime_to_ghdate(): assert_equals(datetime_to_ghdate(dt(2011, 5, 22, 0, 24, 15)), '2011/05/22 00:24:15 -0700') assert_equals(datetime_to_ghdate(dt(2009, 4, 18, 20, 4, 9)), '2009/04/18 20:04:09 -0700') #assert_equals(datetime_to_ghdate(dt(2009, 11, 13, 4, 15, 17)), # '2009/11/13 04:15:17 -0800') #assert_equals(datetime_to_ghdate(dt(2009, 11, 13, 4, 16, 20)), # '2009/11/13 04:16:20 -0800') assert_equals(datetime_to_ghdate(dt(2010, 4, 18, 0, 24, 29)), '2010/04/18 00:24:29 -0700') assert_equals(datetime_to_ghdate(dt(2010, 5, 18, 13, 10, 36)), '2010/05/18 13:10:36 -0700') assert_equals(datetime_to_ghdate(dt(2010, 5, 26, 5, 59, 37)), '2010/05/26 05:59:37 -0700') assert_equals(datetime_to_ghdate(dt(2010, 5, 27, 0, 8, 41)), '2010/05/27 00:08:41 -0700') assert_equals(datetime_to_ghdate(dt(2010, 6, 20, 13, 13, 37)), '2010/06/20 13:13:37 -0700') assert_equals(datetime_to_ghdate(dt(2010, 7, 28, 19, 56, 51)), '2010/07/28 19:56:51 -0700') assert_equals(datetime_to_ghdate(dt(2010, 9, 21, 4, 32, 49)), '2010/09/21 04:32:49 -0700')
def test_datetime_to_ghdate(): eq_(datetime_to_ghdate(dt(2011, 5, 22, 0, 24, 15)), '2011/05/22 00:24:15 -0700') eq_(datetime_to_ghdate(dt(2009, 4, 18, 20, 4, 9)), '2009/04/18 20:04:09 -0700') #eq_(datetime_to_ghdate(dt(2009, 11, 13, 4, 15, 17)), # '2009/11/13 04:15:17 -0800') #eq_(datetime_to_ghdate(dt(2009, 11, 13, 4, 16, 20)), # '2009/11/13 04:16:20 -0800') eq_(datetime_to_ghdate(dt(2010, 4, 18, 0, 24, 29)), '2010/04/18 00:24:29 -0700') eq_(datetime_to_ghdate(dt(2010, 5, 18, 13, 10, 36)), '2010/05/18 13:10:36 -0700') eq_(datetime_to_ghdate(dt(2010, 5, 26, 5, 59, 37)), '2010/05/26 05:59:37 -0700') eq_(datetime_to_ghdate(dt(2010, 5, 27, 0, 8, 41)), '2010/05/27 00:08:41 -0700') eq_(datetime_to_ghdate(dt(2010, 6, 20, 13, 13, 37)), '2010/06/20 13:13:37 -0700') eq_(datetime_to_ghdate(dt(2010, 7, 28, 19, 56, 51)), '2010/07/28 19:56:51 -0700') eq_(datetime_to_ghdate(dt(2010, 9, 21, 4, 32, 49)), '2010/09/21 04:32:49 -0700')
def test_datetime_to_ghdate(): eq_(datetime_to_ghdate(dt_utz(2011, 5, 22, 7, 24, 15)), "2011/05/22 00:24:15 -0700") eq_(datetime_to_ghdate(dt_utz(2009, 4, 18, 20, 4, 9)), "2009/04/18 13:04:09 -0700") eq_(datetime_to_ghdate(dt_utz(2009, 11, 13, 4, 15, 17)), "2009/11/12 20:15:17 -0800") eq_(datetime_to_ghdate(dt_utz(2009, 11, 13, 4, 16, 20)), "2009/11/12 20:16:20 -0800") eq_(datetime_to_ghdate(dt_utz(2010, 4, 18, 0, 24, 29)), "2010/04/17 17:24:29 -0700") eq_(datetime_to_ghdate(dt_utz(2010, 5, 18, 13, 10, 36)), "2010/05/18 06:10:36 -0700") eq_(datetime_to_ghdate(dt_utz(2010, 5, 26, 5, 59, 37)), "2010/05/25 22:59:37 -0700") eq_(datetime_to_ghdate(dt_utz(2010, 5, 27, 0, 8, 41)), "2010/05/26 17:08:41 -0700") eq_(datetime_to_ghdate(dt_utz(2010, 6, 20, 13, 13, 37)), "2010/06/20 06:13:37 -0700") eq_(datetime_to_ghdate(dt_utz(2010, 7, 28, 19, 56, 51)), "2010/07/28 12:56:51 -0700") eq_(datetime_to_ghdate(dt_utz(2010, 9, 21, 4, 32, 49)), "2010/09/20 21:32:49 -0700")