• 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: Date manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date manipulation


  • Subject: Re: Date manipulation
  • From: Emile Schwarz <email@hidden>
  • Date: Sat, 08 Jul 2006 19:56:22 +0200

You are totally right, Michelle.

This happens also for day and month but only for the negative computations...

In the other way, you can set the day or the month to any positive value: month and year are updated.

I wanted to write something (some question) about that, but I didn't had time to do that.


If the Hour is 18, and you set a negative value from 1 to 17, it works fine. Same apply to day (max value is the current day number - 1) and month...


Apple Engineer, where are you ? Isn't it possible to auto update the computation in the now to past in the same way it works for now to future...


Cheers,

Emile



email@hidden wrote:
Date: Sat, 8 Jul 2006 07:54:20 -0700
From: Michelle Steiner <email@hidden>
Subject: Date manipulation
To: Applescript Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

This works:
set today to date "Tuesday, July 8, 2008 8:00:0 AM"
set time of today to (time of today) + anything

This doesn't:
set today to date "Tuesday, July 8, 2008 8:00:0 AM"
set time of today to (time of today) - something

if "something" causes "today" to be the previous day (or earlier). However, it works if it causes it to be earlier in the same day.

--> "Can't make some data into the expected type."

-- Michelle

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Date manipulation
  • Next by Date: Re: Intel gets bad height and width
  • Previous by thread: Re: Date manipulation
  • Next by thread: Code referenced by variable runs but variable undefined
  • Index(es):
    • Date
    • Thread