PHP's strtotime in Objective C/iPhone -


What is an equivalent (or obscurely similar) in PHP stratom in C / iPhone?

    Stratomim can understand the following time expression (from PHP documentation) for example:

    • Stratomime ("now"), "\ n";
    • Repeat strtotime ("+ 1 week"), "(" + 1 day ")," ("+ 1 day"), "\ n";
    • "," \ N ";
    • " squat time "(" + 1 week 2 day 4 hours 2 seconds ")," \ n ";
    • "
    • < Anchka Stratomime ("Last Monday"), "\ n" "Text">

  • Echo of Scott Time ("September 10, 2000" ), "\ N";
  • NSDateFormatter * format = [[NSDateFormatter alloc] init]; [format setDateFormat: @ "Dd MMM yyyy"]; NSDT * now = [[NSDT alloc] init]; NSString * dateString = [format stringFormat: now]; NSLog (@ "time:% @", datostring); NSDate * parsed = [format DateFromString: @ "10 Sep 2000"]; NSLog (@ "Time:% @", [Format StringFormat: Parsed]);

    Obviously alloc-ed objects need to be released.

    And here is an article that can help with others:


    Comments

    Popular posts from this blog

    Eclipse CDT variable colors in editor -

    AJAX doesn't send POST query -

    wpf - Custom Message Box Advice -