Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

now(3) [debian man page]

now(3)							     Library Functions Manual							    now(3)

NAME
now - get current time, in seconds SYNTAX
#include <now.h> datetime_sec now(); DESCRIPTION
now returns the number of real-time seconds that have elapsed since the end of 1969 TAI. SEE ALSO
datetime(3), time(3) now(3)

Check Out this Related Man Page

alarm(3)						     Library Functions Manual							  alarm(3)

NAME
alarm, ualarm - Sets or changes the timeout of interval timers. LIBRARY
Standard C Library (libc) SYNOPSIS
#include <unistd.h> unsigned int alarm( unsigned int seconds); useconds_t ualarm( useconds_t useconds, useconds_t interval); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: alarm(), ualarm(): XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies a number of real-time seconds. Specifies a number of real-time microseconds. Specifies the interval for repeating the timer. DESCRIPTION
The alarm() function is used to obtain notification of a timeout after the number of real-time seconds specified by the seconds parameter has elapsed. At some time after seconds seconds have elapsed, a signal is delivered to the process. Each call resets the timer to the new value. A value of 0 (zero) disables the timer. When the notification signal is caught or ignored, no action takes place; otherwise the calling process is terminated. The alarm() function uses the ITIMER_REAL interval timer. The ualarm() function is used to obtain notification of a timeout after the number of real-time microseconds specified by the useconds parameter has elapsed. When the interval parameter is nonzero, timeout notification occurs after the number of microseconds specified by the interval parameter has been added to the useconds parameter. When the notification signal is caught or ignored, no action takes place; otherwise the calling process is terminated. The ualarm() function is the simplified interface to the setitimer() function, and uses the ITIMER_REAL interval timer. NOTES
The alarm() and ualarm() functions are supported for multithreaded applications. Although the alarm() and ualarm() functions are reentrant, it should be noted that just as the second of two calls from a single thread to alarm() resets the timer, this is also true if two calls are made from different threads. RETURN VALUES
If there is a previous alarm() request with time remaining, the alarm() function returns a non-zero value that is the number of seconds until the previous request would have generated a SIGALRM signal. Otherwise, alarm() returns 0 (zero). The ualarm() function returns the number of microseconds remaining from the previous ualarm() call. If no timeouts are pending or if ualarm() has not previously been called, ualarm() returns 0 (zero). ERRORS
The alarm() function sets errno to the specified values for the following conditions: [Tru64 UNIX] The seconds parameter specifies a value greater than 100,000,000. RELATED INFORMATION
Functions: gettimer(3) Standards: standards(5) delim off alarm(3)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

sendmail : 550 host unknown

Hi I try to configure snedmail as smtp for my solaris box. if the useres are local there's no problem everything's working fine, but is it outside, sendmail says it could find the host. why?! all other tools find diffrent host? Could anyone tell me how I set up an easy mx ? So I test it with... (29 Replies)
Discussion started by: mrsaint
29 Replies

2. What is on Your Mind?

Programming languages polyglots: how many languages you know?

Post what languages (including scripting) you know, why and where you think that language is most usable. Also include libraries in which you're really good at (libusb, gtk, qt, etc). assembly? C or C++? perl or python? pascal? bash or csh/tcsh? opengl? gtk or qt? mono? (27 Replies)
Discussion started by: redoubtable
27 Replies

3. Shell Programming and Scripting

awk out an unknown column ?

I need a solution to awk out an unknown column. I am unable to say '{print $x}' because the location changes. I would like to find a perl or awk solution to this. I do not know either very well but am trying to delve deeper into both. I am looking for the version of pkg8 in this example. Please... (17 Replies)
Discussion started by: i9300
17 Replies

4. Solaris

Anyone know how to get Serial number with 1 command?

Solaris8 Anyone help? (27 Replies)
Discussion started by: frustrated1
27 Replies

5. What is on Your Mind?

How much snow do you have where you are?

It was shaping up to be another snowless holiday season and then it just began snowing, slowly, but continuously for the last 2 days, with no sign of stopping. We're up to 2 feet now, 4 in some places -- like in front of my workplace's door... I had to walk to work, following the ruts in the road! (27 Replies)
Discussion started by: Corona688
27 Replies

6. What is on Your Mind?

What The World Needs Now...

What does the world need now.... ??? Feel free to suggest new items to the poll .... we might add them :) (25 Replies)
Discussion started by: Neo
25 Replies

7. Solaris

Unknown fstype?

Dear all I have formatted/labeled/partitioned my new disk but when trying to mount it is returning 'unknown fstype' .Can you please let me know how to solve this problem? Thank you (37 Replies)
Discussion started by: hadimotamedi
37 Replies

8. UNIX for Dummies Questions & Answers

Knowing when a different program modifies a file

so i was testing something on a test box running linux. i manually vi'ed the /var/log/messages file. and i noticed, the file immediately stopped being updated. it wasn't until i restarted the syslog process that events started being recorded in it again. so that tells me, the syslog process... (20 Replies)
Discussion started by: SkySmart
20 Replies

9. UNIX for Beginners Questions & Answers

Tried to change user name, now cannot log in

I have been trying to change my user name and machine name, however now I cannot log in and I am directed as guest. Is there a way to resolve this problem? (33 Replies)
Discussion started by: kristinu
33 Replies

10. What is on Your Mind?

Posts Converted to Divs - Overflow Works - Now Testing

Hey, Success! I have converted the posts (each of the main posts) from table tags to div tags and the problem with the scroll bar and code tags is fixed, as I predicted (Yay!). Now I'm testing this (only I see the new results because the new code is restricted to my userid) but I would... (27 Replies)
Discussion started by: Neo
27 Replies