int getdate_r (const char *string, struct tm *res);
******************************************************************
******************************************************************
******************************************************************
Sous HP:
getdate(3C) getdate(3C)
NAME
getdate() - convert user format date and time
SYNOPSIS
#include <time.h>
struct tm *getdate(const char *string);
Obsolescent Interface
int getdate_r(const char *string, struct tm *result, int *errnum);
DESCRIPTION
The getdate() function converts user definable date and/or time
specifications pointed to by string into a struct tm. The structure
declaration is in the <time.h> header file (see ctime(3C)).
User-supplied templates are used to parse and interpret the input
string. The templates are text files created by the user and
identified via the environment variable DATEMSK. DATEMSK should be
set to indicate the full path name of the template file. The first
line in the template that matches the input specification is used for
interpretation and conversion into the internal time format. Upon
successful completion, getdate() returns a pointer to a struct tm;
otherwise, it returns NULL and the symbol getdate_err is set to
indicate the error.
The following field descriptors are supported:
%% same as %
%a abbreviated weekday name
%A full weekday name
%b abbreviated month name
%B full month name
%c locale's appropriate date and time representation
%d day of the month (01 through 31; the leading 0 is
optional)
%e same as %d
%D date as %m/%d/%y
%h abbreviated month name
%H hour (00 through 23)
%I hour (01 through 12)
%m month number (01 through 12)
%M minute (00 through 59)
%n same as \n
%p locale's equivalent of either AM or PM
%r time as %I:%M:%S %p
%R time as %H:%M
%S seconds (00 through 61)
%t insert a tab
%T time as %H:%M:%S
Hewlett-Packard Company - 1 - HP-UX 11i Version 1: May 2001
# Commentaire supprimé
Posté par Anonyme . Évalué à 5.
Ce commentaire a été supprimé par l’équipe de modération.
[^] # Re: Manpages ?
Posté par Entaxeime . Évalué à 0.
NOM
getdate, getdate_r - Conversion d'une chaîne de caractères en struc-
ture tm.
SYNOPSIS
#define _XOPEN_SOURCE
#define _XOPEN_SOURCE_EXTENDED
#include <time.h>
struct tm *getdate (const char *string);
extern int getdate_err;
#define _GNU_SOURCE
#include <time.h>
int getdate_r (const char *string, struct tm *res);
******************************************************************
******************************************************************
******************************************************************
Sous HP:
getdate(3C) getdate(3C)
NAME
getdate() - convert user format date and time
SYNOPSIS
#include <time.h>
struct tm *getdate(const char *string);
Obsolescent Interface
int getdate_r(const char *string, struct tm *result, int *errnum);
DESCRIPTION
The getdate() function converts user definable date and/or time
specifications pointed to by string into a struct tm. The structure
declaration is in the <time.h> header file (see ctime(3C)).
User-supplied templates are used to parse and interpret the input
string. The templates are text files created by the user and
identified via the environment variable DATEMSK. DATEMSK should be
set to indicate the full path name of the template file. The first
line in the template that matches the input specification is used for
interpretation and conversion into the internal time format. Upon
successful completion, getdate() returns a pointer to a struct tm;
otherwise, it returns NULL and the symbol getdate_err is set to
indicate the error.
The following field descriptors are supported:
%% same as %
%a abbreviated weekday name
%A full weekday name
%b abbreviated month name
%B full month name
%c locale's appropriate date and time representation
%d day of the month (01 through 31; the leading 0 is
optional)
%e same as %d
%D date as %m/%d/%y
%h abbreviated month name
%H hour (00 through 23)
%I hour (01 through 12)
%m month number (01 through 12)
%M minute (00 through 59)
%n same as \n
%p locale's equivalent of either AM or PM
%r time as %I:%M:%S %p
%R time as %H:%M
%S seconds (00 through 61)
%t insert a tab
%T time as %H:%M:%S
Hewlett-Packard Company - 1 - HP-UX 11i Version 1: May 2001
Suivre le flux des commentaires
Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.