10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have the below requirement ,
if i give the week number for ex 41 i need to get the date for Monday and thursday for this given week. my expected output is 13/10/2014 (Monday's date) and 16/10/2014 (Thursday's date)
I am using GNU LINUX .
Pls help me with your thoughts.
Thanks in... (7 Replies)
Discussion started by: mohanalakshmi
7 Replies
2. UNIX for Dummies Questions & Answers
I have been volunteered by my boss to be the sysadmin for our production redhat server. He asked me to tighten the security to avoid mishaps like "rm -f *" that occured not long ago.
Right now, we have 53 users sudo-ing into the machine and it is an audit nightmare. I am wondering if it... (15 Replies)
Discussion started by: alan
15 Replies
3. HP-UX
In HP-UX the date command does not have the "-d" switch like some other *nixes do. I'm working a simple script to tell me, given the day, month and year what day of the week that falls on.
Assuming valid day, month and year input (I'd perform quality checks on the input separately, but not... (5 Replies)
Discussion started by: rwuerth
5 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I need to know how to derive the day of the week by passing the value in following format:
Feb 28 2010
The output I'm expecting is Sunday or Sun.
I know, I can use the following code to get the day of the week.
date +%a
But I want to pass the value as a string. Please help... (11 Replies)
Discussion started by: shash
11 Replies
5. Shell Programming and Scripting
Hi all, I am trying to get dow from cal using below script
#! /bin/bash
YEAR=`echo $1 | cut -c 1-4`
MONTH=`echo $1 | cut -c 5-6`
DAY=`echo $1 | cut -c 7-8`
for i in 1 2 3 4 5 6 7
do
dayofweek=`cal $MONTH $YEAR | awk '$i == $DAY {printf("%s","$i")}'`
echo $dayofweek... (4 Replies)
Discussion started by: bzylg
4 Replies
6. UNIX and Linux Applications
Hi All,
I want to find a day of week for the Linux system.
can some one help me on this..
Thanks in advance,
Raji. (2 Replies)
Discussion started by: rajinavaneethan
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Our system is running on Solaris 8 and we are using US locale. By default the First Day Of Week is Sunday, is it possible for us to change it to Monday?
I have googled it but found very little of use.
THanks in advance. (2 Replies)
Discussion started by: fowlerleftfoot
2 Replies
8. Shell Programming and Scripting
I need o get yesterday's day of week but im not exactly sure. the actual name is what i want. I can do it with numbers but im not sure with words. (3 Replies)
Discussion started by: rcunn87
3 Replies
9. Programming
Hi ,
I am working at Unix system,using c lang.
I need c fun which return the day of the week .
For example :
0- Sunday.
1- Monday.
....
10x. (4 Replies)
Discussion started by: kamil
4 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I would like to calculate the day of the week using a supplied date.
i.e. 20011012 = Day 5.
Any ideas?
Many thanks,
ligs (4 Replies)
Discussion started by: ligs
4 Replies
libexslt(4) Kernel Interfaces Manual libexslt(4)
NAME
libexslt - extension library for XSLT
DESCRIPTION
The libexslt library is used to provide extensions to XSLT functions. These extensions come from the EXSLT project (http://www.exslt.org/)
CALLING
To make use of these functions XSLT, these need to be declared with the proper name space
SUPPORTED FUNCTIONS
COMMON
Namespace: http://exslt.org/common
node-set() convert the given RTF into a node-set
object-type() returns the type of the given argument
document() Create multiple output documents. See http://www.exslt.org/exsl/elements/document/index.html
MATH
Namespace: http://exslt/math
For a description see http://www.exslt.org/math/index.html
min() returns the minimum value of the given node-set
max() returns the maximum value of the given node-set
highest() returns the nodes in the node-set whose value is the maximum value for the node-set.
lowest() returns the nodes in the node-set whose value is the minimum value for the node-set.
constant() returns a number value of the given constant with the given precision. The constants are PI, E, SQRRT2, LN2, LN10,
LOG2E, and SQRT1_2.
random() returns a random number between 0 and 1 inclusive.
abs() returns the absolute value of the argument.
sqrt() returns the square root of the argument.
power() returns the power base and power arguments.
log() returns the natural log of the argument.
sin() returns the sine of the argument.
cos() returns the cosine of the argument.
tan() returns the tangent of the argument.
asin() returns the arc sine of the argument.
acos() returns the arc cosine of the argument.
atan() returns the arc tangent of the argument.
atan2() returns the arc tangent function of the y/x arguments.
exp() returns the exponential function of the argument.
SETS
Namespace http://exslt.org/sets
For a description see http://www.exslt.org/set/index.html
difference() returns the difference between the two given node-sets.
intersection() returns a node-set of the nodes within both given node-sets.
distinct() returns a node-set of all nodes in the first argument that are not in the seconds argument.
has-same-node() returns TRUE if there is an intersection between the two given node-sets.
leading() returns a node-set of all nodes in the first argument that precede the first node in the second argument.
trailing() returns a node-set of all nodes in the first argument that follow the first node in the second argument.
DATES and TIMES
Namespace http://exslt.org/date-and-times
For a description see http://www.exslt.org/date/date.html
date-time() returns the current date and time as a date/time string.
date() returns the date specified in the given date/time string.
time() returns the time specified in the date/time string given as the argument.
year() returns the year of a date as a number.
leap-year() returns true if the year given in a date is a leap year.
month-in-year() returns the month of a date as a number.
month-name() returns the full name of the month of a date.
month-abbreviation() returns the abbreviation of the month of a date.
week-in-year() returns the week of the year as a number.
week-in-month() returns the week in a month of a date as a number.
day-in-year() returns the month of a date as a number.
day-in-month() returns the day of a date as a number.
day-in-week-in-month()
returns the day-of-the-week in a month of a date as a number.
day-in-week() returns the day of the week given in a date as a number.
day-name() returns the full name of the day of the week of a date.
day-abbreviation() returns the abbreviation of the day of the week of a date.
hour-in-day() returns the hour of the day as a number.
minute-in-hour() returns the minute of the hour as a number.
second-in-minute() returns the second of the minute as a number.
seconds() returns the number of seconds specified by the argument string.
add() returns the date/time resulting from adding a duration to a date/time.
add-duration() returns the duration resulting from adding two given durations together.
difference() returns the duration between the first date and the second date.
duration() returns a duration string that represents the given number of seconds since 1970-01-01T00:00:00.
STRINGS
Namespace http://exslt.org/strings
For a description see http://www.exslt.org/str/index.html
tokenize() returns a node set of token elements, each containing one token from the string.
padding() returns a string padded to a certain length.
align() returns a string aligned within another string.
concat() returns the concatenation of the string values of the nodes in that node set.
FUNCTIONS
Namespace http://exslt.org/functions
For a description see http://www.exslt.org/func/index.html
function() declares an extension function.
result() returns the result of an extension function declared in function().
FILES
/usr/lib/libexslt.a static library
/usr/lib/libexslt.so sharable library
AUTHORS
Manual page by Heiko W. Rupp (hwr@pilhuhn.de)
SEE ALSO
libxslt(3), libxml(3), xsltproc(1), xmllint(1)
15 May 2002 libexslt(4)