Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 10:38 PM
01-19-2004 10:38 PM
date
can anyone plz let me know how to find the previous day and date.
THANKS FOR ALL REPLIES
Regards,
HARI KRISHNA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 10:45 PM
01-19-2004 10:45 PM
Re: date
echo $YESTERDAY
shows yesterdays date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 10:53 PM
01-19-2004 10:53 PM
Re: date
You can see calender with command cal for current month
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 11:11 PM
01-19-2004 11:11 PM
Re: date
perl -e 'use POSIX(strftime);print strftime("%Y/%m/%d",gmtime(time-3600*24))."\n";'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 11:26 PM
01-19-2004 11:26 PM
Re: date
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 02:13 AM
01-20-2004 02:13 AM
Re: date
DATE=$(caljd.sh -S "/" $(caljd.sh -p 1))
echo "Date = ${DATE})
By changing the -p (previous) 1 to -n (next) 3, it would yield the date 3 days from now.
Also, suppose that you wanted the previous day BUT you wanted to skip weekends so that the day before Monday was to be Friday:
DATE=$(caljd.sh -S "/" $(caljd.sh -p 1 -x 0 -x 6))
echo "Date = ${DATE})
The -x 0 skips Sunday and -x 6 skips Saturday.
Invoke as caljd.sh -u for full usage.