To obtain current time

@anamika You may want to try this