• 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: kai <email@hidden>
  • Date: Mon, 1 Jan 2007 19:06:59 +0000


On 1 Jan 2007, at 18:14, Hung Phan wrote:

I try to write a backup script that which move older files into the previous date folder. Search throughout Google for a way to get yesterday date using "date" command, no luck. Can someone help me with this please?

If you want to ensure that "yesterday" means the start of yesterday (rather than exactly 24 hours ago), then you might consider something like:


-------------------

tell (current date) to set yesterday to it - days - time

-------------------

---
kai


_______________________________________________ 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: find yesterday date using date command
      • From: Michelle Steiner <email@hidden>
References: 
 >find yesterday date using date command (From: Hung Phan <email@hidden>)

  • Prev by Date: Re: find yesterday date using date command
  • Next by Date: Re: Opening a specified URL in a specified browser (was: AppleScript-Users Digest, Vol 3, Issue 654)
  • Previous by thread: Re: find yesterday date using date command
  • Next by thread: Re: find yesterday date using date command
  • Index(es):
    • Date
    • Thread