Mt Xia: Technical Consulting Group

Business Continuity / Disaster Recovery / High Availability
Data Center Automation / Audit Response / Audit Compliance

-
Current Location
-

css
  Downloads
    Scripts
      Korn
        Time and Date

-

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


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

www.siteox.com

FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

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)

-
Time and Date
-
 

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


FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

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

www.siteox.com