• 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: Announce the time every 30 minutes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Announce the time every 30 minutes


  • Subject: Re: Announce the time every 30 minutes
  • From: Andrew Merenbach <email@hidden>
  • Date: Fri, 12 Dec 2008 15:25:53 -0800


On Dec 12, 2008, at 1:30 PM, Benjamin Dobson wrote:

On 12 Dec 2008, at 18:36:21, has wrote:

You could run 'say `date`' as a cron job.

Make sure to specify your own date format. The user's default one will probably sound silly.


For example,

	date "+The time now is %I:%m %p on %A %B %e %Y"

will return

	The time now is 09:12 pm on Friday December 12 2008

The system voices will pick it up as a date and say "twelfth" instead of "twelve". Compare this with my default format:

	Fri 12 Dec 2008 21:27:14 GMT

I had to listen to that several times to work out what it was saying. It is spoken ridiculously fast.

See date man page for more info.

Hi! A tiny bit of nitpickiness, if I may: When employing the above format string, one will probably want to use %M, rather than %m -- when I tried it, the %m returned the month, while %M returned the minutes.


Cheers,
	Andrew

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Announce the time every 30 minutes (From: has <email@hidden>)
 >Re: Announce the time every 30 minutes (From: Benjamin Dobson <email@hidden>)

  • Prev by Date: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
  • Next by Date: Funky behavior with layer-backed views
  • Previous by thread: Re: Announce the time every 30 minutes
  • Next by thread: Re: Announce the time every 30 minutes
  • Index(es):
    • Date
    • Thread