Python Program to get Hour:Minute:Second

Rajnilari2015
Posted by Rajnilari2015 under Python category on | Points: 40 | Views : 458
from System import *

class Program(object):
def Main(args):
hourMinuteSecond = DateTime.Now.ToString("HH:mm:ss")
Console.WriteLine("Hour:Minute:Second : {0}", hourMinuteSecond)
Console.ReadKey()

Main = staticmethod(Main)


Result
------

Hour:Minute:Second : 09:38:53

Comments or Responses

Login to post response