05-30-2015
Yes it's a class project.
We are using windows but I have Linux at home.
Sorry totally new to this. I don't know what ksh is.
When I run the script all I get is unexcepted ending ( if I remember correct) and it says something about the done on the last line of the code.
Sorry I can't help more. This is the first assignment of the class. If you want to copy the script and run it yourself it's fine by me.
5 More Discussions You Might Find Interesting
1. Programming
Hi,
I am a newbie using linux. I want to use the 9 pins of the COM port for data transmission. I am trying to write a code to toggle the DTR pin in /dev/ttyS0.
Can any one help by giving a sample code or links that will help me pick up fast
Regards (2 Replies)
Discussion started by: Srikanthks_2000
2 Replies
2. Shell Programming and Scripting
Hi all,
Am currently working on editing a startup script that need me to copy a certain file from cdrom to /tmp (its a live cd am working on)and mount if from there to certain place..
Now i know that nothing can be stored in /tmp permanently ,however mechanism to load the file to /tmp on... (19 Replies)
Discussion started by: wrapster
19 Replies
3. UNIX Desktop Questions & Answers
Hello everybody! I need some help.
Is there a way to pin a window to the desktop in Linux?
I have a list of tasks in Calc. And I want the window of Calc to be always before my eyes, so that it sort of reminds me of my tasks. The window must be «stuck» to the desktop, and when I click the... (0 Replies)
Discussion started by: alex777
0 Replies
4. Programming
Hi
Can any one tell me from where can i get the code/library(c/c++(Sun)) for PIN generation.
Actually i need to generate a new PIN for the user in case sombody reset his PIN.
Thanks in Advance. (1 Reply)
Discussion started by: unisuraj
1 Replies
5. AIX
Hi,
We have an issue on our lpar where the pin memory usage slowly and regularly increases approx 1.5% a day until it reaches its 80% threshold
We have to regularly reboot the lpars to release the pin memory as we have found that killing all processes does not release it.
However,... (1 Reply)
Discussion started by: GarciasMuffin
1 Replies
LEARN ABOUT PHP
datetime.setdate
DATETIME.SETDATE(3) 1 DATETIME.SETDATE(3)
DateTime::setDate - Sets the date
Object oriented style
SYNOPSIS
public DateTime DateTime::setDate (int $year, int $month, int $day)
DESCRIPTION
Procedural style
DateTime date_date_set (DateTime $object, int $year, int $month, int $day)
Resets the current date of the DateTime object to a different date.
PARAMETERS
o $object
-Procedural style only: A DateTime object returned by date_create(3). The function modifies this object.
o $year
- Year of the date.
o $month
- Month of the date.
o $day
- Day of the date.
RETURN VALUES
Returns the DateTime object for method chaining or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | Changed the return value on success from NULL to |
| | DateTime. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
DateTime.setDate(3) example
Object oriented style
<?php
$date = new DateTime();
$date->setDate(2001, 2, 3);
echo $date->format('Y-m-d');
?>
Procedural style
<?php
$date = date_create();
date_date_set($date, 2001, 2, 3);
echo date_format($date, 'Y-m-d');
?>
The above examples will output:
2001-02-03
Example #2
Values exceeding ranges are added to their parent values
<?php
$date = new DateTime();
$date->setDate(2001, 2, 28);
echo $date->format('Y-m-d') . "
";
$date->setDate(2001, 2, 29);
echo $date->format('Y-m-d') . "
";
$date->setDate(2001, 14, 3);
echo $date->format('Y-m-d') . "
";
?>
The above example will output:
2001-02-28
2001-03-01
2002-02-03
SEE ALSO
DateTime.setISODate(3), DateTime.setTime(3).
PHP Documentation Group DATETIME.SETDATE(3)