Re: Unixy question
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.