CALENDAR(1) General Commands Manual CALENDAR(1)NAME
calendar - print upcoming events
SYNOPSIS
calendar [ file ]
DESCRIPTION
Calendar reads the named file, default /usr/$user/lib/calendar, and writes to standard output any lines containing today's or tomorrow's
date. Examples of recognized date formats are "4/11", "April 11", "Apr 11", "11 April", and "11 Apr". All comparisons are case insensi-
tive.
On Friday and Saturday, events through Monday are printed.
To have your calendar mailed to you every day, use cron(8).
FILES
/usr/$user/lib/calendar
personal calendar
SOURCE
/sys/src/cmd/calendar.c
CALENDAR(1)
Check Out this Related Man Page
CAL_FROM_JD(3) 1 CAL_FROM_JD(3)cal_from_jd - Converts from Julian Day Count to a supported calendarSYNOPSIS
array cal_from_jd (int $jd, int $calendar)
DESCRIPTION cal_from_jd(3) converts the Julian day given in $jd into a date of the specified $calendar. Supported $calendar values are CAL_GREGORIAN,
CAL_JULIAN, CAL_JEWISH and CAL_FRENCH.
PARAMETERS
o $jd
- Julian day as integer
o $calendar
- Calendar to convert to
RETURN VALUES
Returns an array containing calendar information like month, day, year, day of week, abbreviated and full names of weekday and month and
the date in string form "month/day/year".
EXAMPLES
Example #1
cal_from_jd(3) example
<?php
$today = unixtojd(mktime(0, 0, 0, 8, 16, 2003));
print_r(cal_from_jd($today, CAL_GREGORIAN));
?>
The above example will output:
Array
(
[date] => 8/16/2003
[month] => 8
[day] => 16
[year] => 2003
[dow] => 6
[abbrevdayname] => Sat
[dayname] => Saturday
[abbrevmonth] => Aug
[monthname] => August
)
SEE ALSO cal_to_jd(3), jdtofrench(3), jdtogregorian(3), jdtojewish(3), jdtojulian(3), jdtounix(3).
PHP Documentation Group CAL_FROM_JD(3)
Can somebody help me in building a text file which will contain the dates of 2 yrs in the format YYYYMMDD using korn shell
e.g. to generate a file with the contents
20010101
20010102
...
...
20010131
20010201
...
...
20010228
20010301
...
and so on. (2 Replies)
I need Unix, ksh scripts that will convert dates - Gregorian to Julian and Julian to Gregorian.
Input for converting Gregorian to Julian would be in the form of CCYYMMDD with the output being CCYYDDD.
Input for converting Julian to Gregorian would be CCYYDDD with the output being CCYYMMDD.
... (4 Replies)
Hi folks,
I am kind of new to these things. I want to create a web based database which will serve as a sort of vacation calendar for the employees so that we know how many men we have at a given date.
We want this to be seen on internal pages only, so it will be accessed by a username and... (3 Replies)
Hi,
I need a simple shell script to help filter weekends from the calendar of a month. In other words, i need a script to identify the working days in a month. (3 Replies)
how to get the calendar for the year 10000 like we get calendar for say year 2010.
$ cal 2010
2010
Jan Feb Mar
S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S
1 2 1 2... (11 Replies)
Hi all,
I require to convert julian date to normal calander date in unix
for eg julian date=122
now i want corresponding calander date
----------------------------------------
gr8 if give very small command/script
and please explain the steps as well(imp)
Thanks
... (3 Replies)
Hello, how can I show monday as first day of the week using cal command? I have read that it must be use -m parameter, but all I have is a display message like this:
cal: option requires and argument -- 'm'
Any help will be greatly appreciated
Regards. (5 Replies)
Does anyone know how to calculate a calendar date since Jan 1, 2000 (this is day 1). I am using CSH with a Solaris system (no GNU products installed).
Example:
Input from the user (number of days):
4444
Output (dd mmm yy)
02 mar 12
---------- Post updated at 09:40 PM ----------... (9 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am required to create a bash shell script with either emacs or vi. It must include the year 2014 calendar on... (9 Replies)
I need to run a script every other monday (alternate mondays) , Can anyone has logic to put into timer script.
We are using below logic to run scripts every day
daywk_is=$(date "+%u")
if ]
then
1=monday, 2=tuesday, 3=wed, 4=thr, 5=fri, 6=sat, 7=sun
can anyone have idea on this (14 Replies)
Hi All,
I'm trying to print calendar using shell script and i'm able to print it. But the format is not good.
Here is the script.
#!/bin/bash
echo $(date)
echo "Hello $USER"
echo Hostname $(hostname)
echo Working in $(pwd)
echo Here is this month calender
echo $(cal)
$ sh first.sh... (7 Replies)
Hi,
I have came across the scenario where, we have to run the script on second and fourth Monday of each month.
I have tried to search man page of date and also forum for it but, could not get any answer to this.
Can you please advise how can we get second and fourth Monday of the month?
... (18 Replies)
Hello,
I need to find the date of next first Friday of the month and set as a variable in a bash script
ie -
FIRSTFRIDAY=$(date -dfirst-friday +%d)
I know date -dfirst-friday doesn't work, but unsure if I can use this / cal + awk or something else to find the right date of the... (7 Replies)