Use NSDate instead of c func time to get timestamp

Otherwise sometimes the pod does not compile, as discussed in issue #133
Merge pull request #134 from tonyxiao/patch-1

Use NSDate instead of c func time to get timestamp (fixes #133)