wrote a program to print the current time