get current time in angularjs controller