This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
NSLog(@"start ---- jinto"); | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
// Override point for customization after application launch. | |
self.viewController = [[_7P3USZ44YViewController alloc] initWithNibName:@"_7P3USZ44YViewController" bundle:nil]; | |
self.window.rootViewController = self.viewController; | |
[self.window makeKeyAndVisible]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
int main(int argc, const char *argv[]) | |
{ | |
NSString *birthd = @"1971-8-24 09:00:00 +0900"; | |
NSDate *from = [[NSDate alloc] initWithString:birthd]; | |
NSTimeInterval diff = [from timeIntervalSinceNow]; | |
int days = diff / 60 / 60 / 24; | |
int hours = ((int)diff/60/60) % 24; |
NewerOlder