Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

auparse_get_timestamp(3) [debian man page]

AUPARSE_GET_TIMESTAMP(3)					  Linux Audit API					  AUPARSE_GET_TIMESTAMP(3)

NAME
auparse_get_timestamp - access timestamp of the event SYNOPSIS
#include <auparse.h> const au_event_t *auparse_get_timestamp(auparse_state_t *au); DESCRIPTION
auparse_get_timestamp provides an accessor function for the event's timestamp data structure. The data structure is as follows: typedef struct { time_t sec; // Event seconds unsigned int milli; // millisecond of the timestamp unsigned long serial; // Serial number of the event const char *host; // Machine's node name } au_event_t; RETURN VALUE
Returns NULL if an error occurs; otherwise, a valid pointer to the data. SEE ALSO
auparse_get_time(3), auparse_get_milli(3), auparse_get_serial(3), auparse_get_node(3), auparse_timestamp_compare(3). AUTHOR
Steve Grubb Red Hat Sept 2007 AUPARSE_GET_TIMESTAMP(3)

Check Out this Related Man Page

AUPARSE_GET_TIMESTAMP(3)					  Linux Audit API					  AUPARSE_GET_TIMESTAMP(3)

NAME
auparse_get_timestamp - access timestamp of the event SYNOPSIS
#include <auparse.h> const au_event_t *auparse_get_timestamp(auparse_state_t *au); DESCRIPTION
auparse_get_timestamp provides an accessor function for the event's timestamp data structure. The data structure is as follows: typedef struct { time_t sec; // Event seconds unsigned int milli; // millisecond of the timestamp unsigned long serial; // Serial number of the event const char *host; // Machine's node name } au_event_t; RETURN VALUE
Returns NULL if an error occurs; otherwise, a valid pointer to the data. SEE ALSO
auparse_get_time(3), auparse_get_milli(3), auparse_get_serial(3), auparse_get_node(3), auparse_timestamp_compare(3). AUTHOR
Steve Grubb Red Hat Sept 2007 AUPARSE_GET_TIMESTAMP(3)
Man Page

10 More Discussions You Might Find Interesting

1. Programming

32-bit timestamp

Hi everyone, does someone know a function to get a 32-bit timestamp, precise enough to cover more than seconds, such as gettimeofday() for example? And also a function for the 64-bit NTP timestamp?? I am experimenting with RTP, where i need this kind of timestamps! thanks to all (0 Replies)
Discussion started by: darkspace
0 Replies

2. Solaris

how to get the milli seconds from date in sun unix

hi all how do we get the milli seconds in sun unix? i am using date +%Y%m%d%H%M%S to get the unique id and create the file based on this. but the problem is that if process to load the table takes only less than 1 sec i am getting errror on my table which have the primary key. how... (2 Replies)
Discussion started by: r2b
2 Replies

3. Shell Programming and Scripting

how to get the milli seconds from date in sun unix

hi all how do we get the milli seconds in sun unix? i am using date +%Y%m%d%H%M%S to get the unique id and create the file based on this. but the problem is that if process to load the table takes only less than 1 sec i am getting errror on my table which have the primary key. how... (1 Reply)
Discussion started by: r2b
1 Replies

4. UNIX for Dummies Questions & Answers

getting time in mili seconds

hi all UNIX Gurus, this is my first post...so i posting this with great expectations:o...hoping to get the similar replies... my question is.... need to get timestamp with millisecond in UNIX. Date command gives Year,month day, hour,minute and second but it does not give millisecond. Any... (5 Replies)
Discussion started by: Bhups
5 Replies

5. UNIX for Dummies Questions & Answers

awk -f scriptfile

Hi. I have a file containing something like this: 1141 2 12355 0 0 1196418669 Runtime error field number $6 is a unix timestamp. I would like to convert this timestamp to something readable like: (1196418669=Fri Nov 30 11:31:09 2007) Fri Nov 30 11:31:09 2007 ... (2 Replies)
Discussion started by: fedtegreve
2 Replies

6. Shell Programming and Scripting

How to merge multiline into line begining with specific word

Hi, The file format is like the following. timestamp=2008-02-28-23.50.29.550675;category=CONTEXT;audit event=CONNECT; event correlator=2; database=CURDOMS;userid=inst3;authid=INST3; origin node=0;coordinator node=0; application id=AC122081.FA97.054468155029;application... (2 Replies)
Discussion started by: missyou
2 Replies

7. UNIX for Dummies Questions & Answers

Set file's timestamp

Hello all, In C - Is there a way of setting a timestamp for a file, and keeping it unchanged? Status information of the file in structure stat is modified automatically, and therefore, as I understand, is not good for that purpose ... ... Thank you in advance. (3 Replies)
Discussion started by: klafte
3 Replies

8. Shell Programming and Scripting

Get timestamp with millisecond precision

Hi All, could any body let me know. how to get timestamp with millisecond precision in unix bash shell. example -->2005-12-06- 4-22-35-195 please help me. Thanks, Krupa:wall: (3 Replies)
Discussion started by: krupasindhu18
3 Replies

9. Red Hat

Total storage space and Serial number

Hi, Could you please tell me the commands to find Total storage space and Serial number of Linux server. OS -- Red Hat Enterprise Linux Server release 6.6 (Santiago) This is 2 node cluster. Regards, Maddy (1 Reply)
Discussion started by: Maddy123
1 Replies

10. Shell Programming and Scripting

Convert Timestamp in text to Serial Date-Time

Hi, I have a data file where the timestamp is in the style of: 2016-10-11 07:01:23.375-500 which is yyyy-mm-dd hh-mm-ss-000 then time conversion from UTC What i need to do is convert these timestamps from the above format to a the Serial Date format (i.e 42,654.2920446 ) now.. if... (14 Replies)
Discussion started by: AshBax
14 Replies