• 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: Do shell script "date" vs current date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script "date" vs current date


  • Subject: Re: Do shell script "date" vs current date
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 12 Mar 2002 08:00:01 -0800

On 3/12/02 1:15 AM, "bill" <email@hidden> wrote:

> You are right, like month number, weekday in number, or format independent
> from user setting.
>
> Set timeStamp to do shell script "date +%Y%m%d%H%M%S"
> -- "20020312165257"
>
> Which is suitable for rename file.
>
> Well, let's share what I find, the full description is in this link:
>
> http://www.tac.eu.org/cgi-bin/man-cgi?strftime+3

Do you know if any of those options you list represent "Date and Time in
the short format set by the user's system preferences". That's the one I
usually need. So that it might look like

"3/12/02 7:58 AM"

on my machine (user, really), but

"12/03/2002 07:58"

on yours, if that's how you are set up?
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Do shell script "date" vs current date (From: bill <email@hidden>)

  • Prev by Date: Re: Combo Box?
  • Next by Date: Re: script object properties: seeking confirmation
  • Previous by thread: Re: Do shell script "date" vs current date
  • Next by thread: Re: Do shell script "date" vs current date
  • Index(es):
    • Date
    • Thread