NSCalendarUnitval=NSCalendarUnitYear|NSCalendarUnitHour;NSCalendar*dupCal=[[NSCalendarcurrentCalendar]copy];[dupCalsetTimeZone:toTimeZone];// setting to a different timezoneNSDateComponents*dupComponents=[dupCalcomponents:valfromDate:[NSDatedate]];// print out the time and checkNSLog(@"%ld",(long)[dupComponentshour]);