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

Re: Unixy question


  • Subject: Re: Unixy question
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 8 May 2002 23:22:13 -0700

At 1:08 AM -0400 5/9/02, Paul Skinner wrote:
>Can someone translate this into the actual string I need to give to a 'do shell script' command to get the time with microseconds ?
>I still feel like I'm reading a french textbook. I know all of these words, but I can't seem to arrange them into meaningful sentences.
>
>GETTIMEOFDAY(2) System Calls Manual
>GETTIMEOFDAY(2)
>
>NAME
> gettimeofday, settimeofday - get/set date and time
>
>SYNOPSIS
> #include <sys/time.h>
>
> int
> gettimeofday(struct timeval *tp, struct timezone *tzp);
>
> int
> settimeofday(const struct timeval *tp, const struct timezone *tzp);
>
>DESCRIPTION

You've got a description of a system routine, not a shell command (which is what "do shell script" provides). You can call this from your C++ program, but not from the command line.

You want the "date" command.

Jon
_______________________________________________
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.

  • Follow-Ups:
    • System calls in AS (was: Re: Unixy question)
      • From: Michael Kelly <email@hidden>
References: 
 >Unixy question (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Unixy question
  • Next by Date: System calls in AS (was: Re: Unixy question)
  • Previous by thread: Unixy question
  • Next by thread: System calls in AS (was: Re: Unixy question)
  • Index(es):
    • Date
    • Thread