#! /usr/bin/env python # def timestamp ( ): #*****************************************************************************80 # ## TIMESTAMP prints the date as a timestamp. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 06 April 2013 # # Author: # # John Burkardt # # Parameters: # # None # import time t = time.time ( ) print time.ctime ( t ) return None def timestamp_test ( ): #*****************************************************************************80 # ## TIMESTAMP_TEST tests TIMESTAMP. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 03 December 2014 # # Author: # # John Burkardt # # Parameters: # # None # print '' print 'TIMESTAMP_TEST:' print ' Python version:' print ' TIMESTAMP prints a timestamp of the current date and time.' print '' timestamp ( ) # # Terminate. # print '' print 'TIMESTAMP_TEST:' print ' Normal end of execution.' return if ( __name__ == '__main__' ): timestamp_test ( )