/* Julian.c: display the julian date.*/

#include <stdio.h>
#include <time.h>

void show_args( char *argument );

int main( int argc, char *argv[] )
{
        int count;
        time_t seconds;
        struct tm *current_time;

        /* show the arguments */

        for( count=0; count < argc; count++ )
                show_args( argv[count] );

        /* get the time */

        time(&seconds); /* seconds since 1/1/1970 */
        current_time=localtime(&seconds);

        printf("The Julian date is %d, at %s\n", current_time->tm_yday+1,
                                     asctime(current_time));

        return 0;
}

void show_args( char *argument )
{
        printf( "%s\n", argument );
}

