10-05-2012
I don't know what timezone you're in. Is this date/time correct (for four hours ago)? October 4, 22:31
If it is then your code seems to be working correctly for creating the timestamp file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies
2. UNIX for Advanced & Expert Users
can someone tell me the meaning of this commnad,
If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter:
time java myprog
Replace myprog with the name of the program you are running. The following is an... (2 Replies)
Discussion started by: ldpathak
2 Replies
3. Shell Programming and Scripting
Hi all,
I want to grep a file name with time stamp as 30 minutes how can i??.
Ex
I will getting outputs in a file every minutes
I want to grep it by a time intervals of 30 and show it . Any help will be great !
Thanks,
Arun. (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
4. Shell Programming and Scripting
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies
5. Shell Programming and Scripting
hi everyone
i am facing a strange problem here
suppose content of my file is
a=1,2,3
b=2,3,4
c=4,5,6
time=
now the problem is i want to add value in front of time variable
and the value should be i format only "HHMMSS"
so it should be like this
a=1,2,3
b=2,3,4
c=4,5,6... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies
6. Shell Programming and Scripting
Here is two time I have:
Jul 12 16:02:01
Jul 13 01:02:01
and how can I do a simple match to get difference between two time which is 09:00:00
Thanks in advance. (3 Replies)
Discussion started by: ford99
3 Replies
7. Solaris
On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help
here is what i get when i check for system date
infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date
Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies
8. Shell Programming and Scripting
Hi,
I wish to change time stamp of a directory with all its subdirectories and files on server.
I am able to find following two ways but want to know which will be the better one. I have not tried anyone of them because I am not sure if it can effect my data:
find * -type d -exec touch... (5 Replies)
Discussion started by: bioinfo
5 Replies
9. Shell Programming and Scripting
I want to find a file using find or any utility having the current date time stamp.....
I have an alternate way to do that.... but that is too way out of logic... so looking out something with find itself (5 Replies)
Discussion started by: nikhil jain
5 Replies
10. Shell Programming and Scripting
I want to display the command output in a particular format. can you please suggest how can i do this
Output of the command
Name= XYZ
Company= Alpha
Department= Accounts
Country= Singapore
Name=MNC
Company= Beta
Department= Engineering
country=Malta
Name=ABC
Company=Gamma... (2 Replies)
Discussion started by: swets
2 Replies
FTIME(3) Linux Programmer's Manual FTIME(3)
NAME
ftime - return date and time
SYNOPSIS
#include <sys/timeb.h>
int ftime(struct timeb *tp);
DESCRIPTION
Return current date and time in tp, which is declared as follows:
struct timeb {
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
};
Here time is the number of seconds since the epoch, millitm is the number of milliseconds since time seconds since the epoch, timezone is
the local time zone measured in minutes of time west of Greenwich, and dstflag is a flag that, if nonzero, indicates that Daylight Saving
time applies locally during the appropriate part of the year.
These days the contents of the timezone and dstflag fields are undefined.
RETURN VALUE
This function always returns 0.
BUGS
This function is obsolete. Don't use it. If the time in seconds suffices, time(2) can be used; gettimeofday(2) gives microseconds;
clock_gettime(3) gives nanoseconds but is not yet widely available.
Under libc4 and libc5 the millitm field is meaningful. But early glibc2 is buggy and returns 0 there; glibc 2.1.1 is correct again.
HISTORY
The ftime() function appeared in 4.2BSD.
CONFORMING TO
BSD 4.2, POSIX 1003.1-2001.
SEE ALSO
gettimeofday(2), time(2)
Linux 2001-12-14 FTIME(3)