• 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: KOENIG Yvan <email@hidden>
  • Date: Mon, 1 Jan 2007 19:43:46 +0100


Le 1 janv. 07 à 19:14:13, Hung Phan a écrit :

Hello, all

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?


You may try:

set curDate to current date
set time of curDate to 0
set yesterdays to curDate - (1 * days)

replacing 1 by a different number give the ability to move back of several days.

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
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: Launching App with bad name
  • Previous by thread: Re: find yesterday date using date command
  • Next by thread: Re: find yesterday date using date command
  • Index(es):
    • Date
    • Thread