Home About BC DR HA Support Training Download
You are here: Home/ Downloads/ Scripts/ Korn/ Time-and-Date/ Please Login or Register

-
Current Location
-

js
  Downloads
    Scripts
      Korn
        Time-and-Date



-
 Mt Xia Inc.
-
BOOK:Advanced Shell Scripting



 Join our LinkedIn Group
AIX Advanced Technical Experts
Contract Opportunities

www.LinkedIn.com
-
 Train By Tweet
Training courses Tweet By Tweet
Various Subjects and Products
TrainByTweet.com


AIX Admin Methodology
Global Consolidation Project
All AIX admins should join
www.aixexpert.com
-

digg Digg this page
del.icio.us Post to del.icio.us
Slashdot Slashdot it!


AIX FREE DEMO UNIX
Automated AIX Deployment
Reduce your DC costs

www.siteox.com

LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com

-

Time and Date Scripts

-

Contained here are references to Korn Shell scripts that provide some type of time and/or date manipulation functions. These functions can be accessed via the menu along the right side of this page.


cal2html_k93: Translate the calendar output from the Unix "cal" command into HTML
The cal2html_k93 Korn Shell command/function transforms the standard text calendar generated by the Unix "cal" command into an HTML document for a single month or an entire year
(non-html version)

displaydom_k93: Display dates in a month for a specified day of the week
This script examines a calendar for a specified month and year and outputs a day of the month or a list of days of the month on which a specified day of the week occurs. For example, this script will output the dates for all of the Sundays in February 2006, or it can output the date of the second Sunday in February 2006.
(non-html version)

fromdate_k93: Calculate a date from a specified beginning date
Shell function to calculate a date forward or backward for a specified number of days from a given date.
(non-html version)

isLeap: Determine if a year is a leap year
Korn shell function to determine if the current or user specified year is a leap year. Returns boolean true or false, also will optionally return the number of days in February.
(non-html version)

isBetween: Determine if a file's date/time stamp is between two specified dates
This function will determine if the last modification date/time on a file is between two specified date/time values. The date/time values required consist of a beginning and an ending date/time, and are expected to be in the following format: YYYY-MM-DD HH:MM:SS.
(non-html version)

cmptime_k93: Compare the system time between two or more systems
Compare the time from the system running this script to the time on each system from a list of remote systems, and generate a time synchronization report in HTML format to identify the differences. Color coded output is generated to segment the synchronized systems from the out-of-sync.
(non-html version)

mkAtJob_k93:
Schedule a command to run sometime in the future via an "at" job, by adding a specified number of days, hours, and/or minutes to the current date/time.
(non-html version)

yesterday:
Calculate the date for yesterday.
(non-html version)

daybeforeyesterday:
Calculate the date for the day before yesterday.
(non-html version)

lastweek:
Calculate the date for the beginning or end of last week.
(non-html version)

lastmonth:
Calculate the date for the beginning or end of last month.
(non-html version)

-
Time and Date
-
 

Days from Date
Is Date Between
Is Leap Year
Compare System Time
cal to html converter


AIX FREE DEMO UNIX
Automated AIX Deployment
Reduce your DC costs

www.siteox.com

LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com