Hi all!
I'm working on a HPUX system, and I was wondering if there is a simple way to convert a date from seconds (since 1970) to a normal date.
Thanks (2 Replies)
hii all.
I have to get the date of the 7th day past from the current date.
if i give the current date as sep 3 then i must get the date as 27th of august.
can we get the values from the "cal" command.
cal | awk '{print $2}' will this type of command work.
actually my need is
if today is... (17 Replies)
Hi all,
I have a variable where it has a past date value in the format YYYY-MM-DD
eg->
pcontromModate="2008-11-31"
How can i get the date 1 day before the pcontromModate.
The required date is 2008-11-30. ..Plz reply since its an urgent one (2 Replies)
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Can I print the date of a specific date?
Let say, today is 20 and I want to print in date format the day 14
I know that I can do this:
date --date='last Mon'
but
How can I do this?:
date --date='last 14'
?? (7 Replies)
hi all..
i want 2 know how 2 find 7days past date from current date..
when i used set datetime = `date '+%m%d%y'` i got 060613..
i just want to know hw to get 053013..
i tried using date functions but couldnt get it :( i use c shell and there is no chance that i can change that ..... (3 Replies)
I have a list of time spans in seconds, and want to compute the time span
as hh:mm:nn
I am coding in bash and have coded the following. However, the results are
wrong as "%.0f" rounds the values.
Example:
ftm: 25793.5
tmspan(hrs,min,sec): 7.16 429.89 25793.50
hh: 7
mm: 10
ss:... (2 Replies)
Hello,
How can we convert date like format 20181004171050 in seconds ?
I can able to convert till date but failing for HHMMSS.
date -d "20181004" "+%s" output as 1538596800 .
But when i add hhmmss it is failing date -d "20181004172000" "+%s" result Invalid date
Kindly guide.
Regards (16 Replies)
Hello everyone,
I calculate in my bash script the different between two timestamps in seconds. The next step would be to get the difference in minutes, and there is my Problem:AnzahlUeberstunden=$(( $(date -d "$JAHR-$MONAT-$TAG $ArbeitEnde" +%s) - $(date -d "$JAHR-$MONAT-$TAG... (6 Replies)
Discussion started by: Chaos_Lord
6 Replies
LEARN ABOUT REDHAT
stat
STAT(1) FSF STAT(1)NAME
stat - display file or filesystem status
SYNOPSIS
stat [OPTION] FILE...
DESCRIPTION
Display file or filesystem status.
-f, --filesystem
display filesystem status instead of file status
-c--format=FORMAT use the specified FORMAT instead of the default
-L, --dereference
follow links
-t, --terse
print the information in terse form
--help display this help and exit
--version
output version information and exit
The valid format sequences for files (without --filesystem):
%A - Access rights in human readable form %a - Access rights in octal %b - Number of blocks allocated %D - Device number in hex %d -
Device number in decimal %F - File type %f - raw mode in hex %G - Group name of owner %g - Group ID of owner %h - Number of hard
links %i - Inode number %N - Quoted File name with dereference if symbolic link %n - File name %o - IO block size %s - Total size,
in bytes %T - Minor device type in hex %t - Major device type in hex %U - User name of owner %u - User ID of owner %X - Time of last
access as seconds since Epoch %x - Time of last access %Y - Time of last modification as seconds since Epoch %y - Time of last modi-
fication %Z - Time of last change as seconds since Epoch %z - Time of last change
Valid format sequences for file systems:
%a - Free blocks available to non-superuser %b - Total data blocks in file system %c - Total file nodes in file system %d - Free
file nodes in file system %f - Free blocks in file system %i - File System id in hex %l - Maximum length of filenames %n - File name
%s - Optimal transfer block size %T - Type in human readable form %t - Type in hex
AUTHOR
Written by Michael Meskes.
REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.
COPYRIGHT
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for stat is maintained as a Texinfo manual. If the info and stat programs are properly installed at your site, the
command
info stat
should give you access to the complete manual.
stat (coreutils) 4.5.3 February 2003 STAT(1)