• 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: Do shell script "date" vs current date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script "date" vs current date


  • Subject: Re: Do shell script "date" vs current date
  • From: John W Baxter <email@hidden>
  • Date: Mon, 11 Mar 2002 08:23:27 -0800

At 8:38 -0700 3/11/2002, garbanzito wrote:
>however even just the shell's date command has some options
>that might be hard to reproduce with current date.

For instance,
do shell script "date +%Y-%m-%d"
--> "2002-03-11"
is an easier way to get that result than many we've discussed here. (Once
one knows about the magic %Y %m and %d formatters and their many friends.
The + says...what follows is a format string...I'm not trying to set the
date.)

--John

--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Do shell script "date" vs current date
      • From: JollyRoger <email@hidden>
References: 
 >Do shell script "date" vs current date (From: bill <email@hidden>)
 >Re: Do shell script "date" vs current date (From: garbanzito <email@hidden>)

  • Prev by Date: Re: Curses! How to make new window in OSX Finder?
  • Next by Date: Re: script object properties: seeking confirmation
  • Previous by thread: Re: Do shell script "date" vs current date
  • Next by thread: Re: Do shell script "date" vs current date
  • Index(es):
    • Date
    • Thread