Re: Convert UNIX timestamp
Re: Convert UNIX timestamp
- Subject: Re: Convert UNIX timestamp
- From: "Tanmoy Roy" <email@hidden>
- Date: Wed, 21 Jun 2006 16:29:58 -0700
Hi Drew,
I normally use my own method to do what you are trying. Please find
attached a sample code which I believe will solve your purpose. In the
code I have used system date just for example. You can pass any valid
date.
USAGE:
****************
eyeMAC:~/Desktop ccdbbsr$ javac DateConverter.java
eyeMAC:~/Desktop ccdbbsr$ java DateConverter "MMMddyyyy"
06-21-2006 MM-dd-yyyy MMMddyyyy
Jun212006
Let me know if that resolves your issue.
Thanks,
Tanmoy
On 6/21/06, Drew Thoeni <email@hidden> wrote:
I have a UNIX timestamp (seconds since 1/1/70) that is a string and
am trying to convert it to an NSTimestamp. I can find plenty of info
on converting strings to dates, but all the methods expect dates in
some month-day-year format. I'm pretty sure others have faced this.
Ideas?
Regards,
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Best,
Tanmoy
Attachment:
DateConverter.java
Description: Binary data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden