universal clock: hour and minutes

a little help im at a loss, it seems i cant find how to grab ios and android device time using cocos2d.

basically i need to create a clock app that runs both on android and ios. little help guys? would appreciate some explanation.