• 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: find yesterday date using date command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find yesterday date using date command


  • Subject: Re: find yesterday date using date command
  • From: "J. Stewart" <email@hidden>
  • Date: Mon, 1 Jan 2007 18:52:54 -0500

On 1/1/07 at -0700 Doug McNutt said this

>The UNIX date command has some of that capability but not enough.
>man date    in Terminal.app for more.


Actually that would be man strftime which gives the formats date can use i.e.

This is almost equivalent to Applescript's current date -

date +"%A, %B %d, %G %r"
--> "Monday, January 01, 2007 06:40:12 PM"

While this returns the seconds since the epoch (based on UTC)

date +"%s"
--> "1167694812"

JBS
--
If lawyers are disbarred and clergymen defrocked, doesn't it follow that electricians can be delighted, musicians denoted, cowboys deranged, models deposed, tree surgeons debarked, and dry cleaners depressed? - George Carlin
 _______________________________________________
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

References: 
 >Re: find yesterday date using date command (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Irritating list reply-to policy
  • Next by Date: Re: Irritating list reply-to policy
  • Previous by thread: Re: find yesterday date using date command
  • Next by thread: Re: find yesterday date using date command
  • Index(es):
    • Date
    • Thread