• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert UNIX timestamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Convert UNIX timestamp (From: Drew Thoeni <email@hidden>)

  • Prev by Date: [SOLUTION] Re: Using Project Wonder frameworks in standalone war for jboss deployment
  • Next by Date: Re: Convert UNIX timestamp
  • Previous by thread: Re: Convert UNIX timestamp
  • Next by thread: Re: Convert UNIX timestamp
  • Index(es):
    • Date
    • Thread