Пример #1
0
 def test_now_str(self):
     now = U.now(utc)
     self.assertEqual(now.strftime("%c"), U.now_str(utc), )
Пример #2
0
def now(args):
    '''
    Tell the current time there.
    '''
    yield 'Their time: {}'.format(U.now_str(args.remote_tz))
Пример #3
0
 def test_now(self):
     self.in_command(C.now, U.now_str(self.remote_tz))