• 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: Mac dates ==> UNIX dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac dates ==> UNIX dates


  • Subject: Re: Mac dates ==> UNIX dates
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 22 Oct 2006 23:01:30 +0200


Le 21 oct. 06 à 16:38, kai a écrit : —


-----------
on formDate(theDate)
tell theDate as «class isot» as string to text 6 thru 7 & "/" & text 9 thru 10 & "/" & text 3 thru 4 & " " & text 12 thru 19
end formDate
-----------


Hello

may I write that I doesn't like dates where year is displaid with 2 digits.

So I prefer:

-----------
on formDate(theDate)
tell theDate as «class isot» as string to text 6 thru 7 & "/" & text 9 thru 10 & "/" & text 1 thru 4 & " " & text 12 thru 19
end formDate
-----------

or even

-----------
on formDate(theDate)
tell theDate as «class isot» as string to text 1 thru 4 & "/" & text 6 thru 7 & "/" & text 9 thru 10 & " " & text 12 thru 19
end formDate
-----------
which is better when sort is required

Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Mac dates ==> UNIX dates
      • From: kai <email@hidden>
References: 
 >Mac dates ==> UNIX dates (From: Marc Myers <email@hidden>)
 >Re: Mac dates ==> UNIX dates (From: kai <email@hidden>)

  • Prev by Date: mailbox list visible
  • Next by Date: Re: mailbox list visible
  • Previous by thread: Re: Mac dates ==> UNIX dates
  • Next by thread: Re: Mac dates ==> UNIX dates
  • Index(es):
    • Date
    • Thread