FROM : Dallas Brown
DATE : Thu Nov 22 03:49:19 2007
Oh man....
I can't believe I missed that...
Thanks, and sorry.
stephen joseph butler wrote:
> On Nov 21, 2007 7:01 PM, Dallas Brown <<email_removed>> wrote:
>
>> I seem to be getting some major inconsistencies when using NSDate
>> timeIntervalSinceReferenceDate....
>> Let me explain...
>>
>> I have the following code:
>>
>> NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate];
>> NSLog(@"%@", [NSDate dateWithTimeIntervalSinceReferenceDate: now]);
>> NSLog(@"%@", [NSString stringWithFormat:@"%d", now]);
>>
>
> NSTimeinterval is a double, not an integer. Try @"%f".
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Thu Nov 22 03:49:19 2007
Oh man....
I can't believe I missed that...
Thanks, and sorry.
stephen joseph butler wrote:
> On Nov 21, 2007 7:01 PM, Dallas Brown <<email_removed>> wrote:
>
>> I seem to be getting some major inconsistencies when using NSDate
>> timeIntervalSinceReferenceDate....
>> Let me explain...
>>
>> I have the following code:
>>
>> NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate];
>> NSLog(@"%@", [NSDate dateWithTimeIntervalSinceReferenceDate: now]);
>> NSLog(@"%@", [NSString stringWithFormat:@"%d", now]);
>>
>
> NSTimeinterval is a double, not an integer. Try @"%f".
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Dallas Brown | Nov 22, 02:01 | |
| stephen joseph but… | Nov 22, 02:08 | |
| Jeff Laing | Nov 22, 02:09 | |
| Dallas Brown | Nov 22, 03:49 |






Cocoa mail archive

