Unix and Linux Discussions Tagged with hour |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
20 |
8,416 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,660 |
Shell Programming and Scripting |
|
|
|
4 |
19,189 |
Shell Programming and Scripting |
|
|
|
5 |
16,569 |
Shell Programming and Scripting |
|
|
|
3 |
11,625 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,875 |
Linux |
|
|
|
7 |
29,728 |
Shell Programming and Scripting |
|
|
|
0 |
922 |
Software Releases - RSS News |
|
|
|
2 |
2,158 |
Shell Programming and Scripting |
|
|
|
2 |
4,025 |
Shell Programming and Scripting |
|
|
|
0 |
1,904 |
Shell Programming and Scripting |
|
|
|
4 |
3,327 |
SCO |
|
|
|
4 |
14,475 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,515 |
Shell Programming and Scripting |
|
|
|
14 |
8,066 |
Shell Programming and Scripting |
|
|
|
16 |
155,308 |
Programming |
|
|
|
14 |
7,788 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,071 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,096 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
19,816 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,758 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
16,207 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,757 |
Programming |
|
|
|
4 |
21,837 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,463 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,260 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,062 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
13,233 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,461 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,642 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
8,213 |
UNIX for Dummies Questions & Answers |
PX_TIMESTAMP2STRING(3) Library Functions Manual PX_TIMESTAMP2STRING(3)
NAME
PX_timestamp2string -- Convert paradox timestamp into formated string
SYNOPSIS
#include <paradox.h>
char * PX_timestamp2string(pxdoc_t *pxdoc, double timestamp, const char *format)
DESCRIPTION
Creates a string representation of a paradox timestamp as specified in the parameter format. The timestamp must be either retrieved with
PX_get_data_double(3) after calling PX_get_record(3) or by simply using the double value in the pxval_t struct as returned by
PX_retrieve_record(3). A timestamp contains both time and date information. The format string contains chars which stand for certain values
of the date/time. The following table lists all available characters with a meaning. All other characters are being copied unmodified to
the output string. If a special character shall not be interpreted it must be preceded with a backslash.
Characters and their meaning in date/time format string
Character Meaning
Y year, numeric, 4 digits
y year, numeric, 2 digits
m month, numeric
n month, numeric, no leading zeroes
d day of the month, numeric
j T{
day of the month, numeric, no leading zeros
T}
H hour, numeric, 24 hour format
h hour, numeric, 12 hour format
G T{
hour, numeric, 24 hour format, no leading zeroes
T}
g T{
hour, numeric, 12 hour format, no leading zeroes
T}
i minutes, numeric
s seconds, numeric
A AM/PM
a am/pm
L boolean for leap year
RETURN VALUE
Returns pointer to string on success and NULL on failure.
SEE ALSO
PX_time2string(3), PX_date2string(3)
AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_TIMESTAMP2STRING(3)