02-14-2008
UNIX Dates
Hey guys.
I need to manipulate the system date to move forward a day. So, if the system date was 02/14/08, I need the 'new' date to be 02/15/08 so my script will look for the date of 02/15/08. The thing is the file I will be looking for always has the date of the next day.
Any ideas,
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I use the date function to get the following format?
Nov 18
I've tried date +%b%d but I get it in this format: Nov18 with no space. (1 Reply)
Discussion started by: ssmiths001
1 Replies
2. UNIX for Dummies Questions & Answers
I'm very new to Unix, so forgive me for what will probably be a very quick fix. I have the following in a ksh script. Its purpose is to return yesterday's date. The $DAY part is coming back with a '2' but I need it to return as '02'. How can I do that?
date '+%b %d %Y' |
{
read MONTH DAY... (4 Replies)
Discussion started by: ssmiths001
4 Replies
3. UNIX for Advanced & Expert Users
Hi,
I need to select the entries between two dates from an Oracle db. The Oracle db has a column with Unix timestamps. I use the following querry, but it doesnt seem to be working as desired.
select count(*) from reporter_status where to_char(FIRSTOCCURRENCE, 'mm-dd-yy') between ('08-07-06')... (1 Reply)
Discussion started by: amitsayshii
1 Replies
4. Shell Programming and Scripting
Hello friends,
I am looking for a script or method that can display all the dates between any 2 given dates.
Input:
Date 1
290109
Date 2
010209
Output:
300109
310109
Please help me. Thanks. :):confused: (2 Replies)
Discussion started by: frozensmilz
2 Replies
5. Shell Programming and Scripting
I have 2 variables in my script like this
$v_last_update_date1 = 08/18/2009 08:41:17
$v_last_update_date2 = 08/18/2009 08:30:17
Now I want to comapre with greater than
if
then go forward
else
error and exit out
I am getting unknown test operator error
Can anyone advise (1 Reply)
Discussion started by: veeru
1 Replies
6. Programming
Don't know if it is important: Debian Linux / MySQL 5.1
I have a table:
media_id int(8)
group_id int(8)
type_id int(8)
expiration date
start date
cust_id int(8)
num_runs int(8)
preferred_time int(8)
edit_date timestamp ON UPDATE CURRENT_TIMESTAMP
id... (0 Replies)
Discussion started by: vertical98
0 Replies
7. Emergency UNIX and Linux Support
Hi guys,
For my wiki site I need to fix 1400 pages that use the wrong date format, most pages (not all) use eg. 1988]] I need to change that to (1988)]]
The date range goes back to 1400 so I guess I need to do the following
ssh into my server,
dump mysql database
vi .sql dump
search... (20 Replies)
Discussion started by: lawstudent
20 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I am trying to print the dates that falls between 2 date variables into a file. Here is the example.
$BUS_DATE =20120616
$SUB_DATE=20120613
Output to file abc.txt should be : 20120613,20120614,120120615,20120616
Can you pls help me accomplish this in LINUX.
Thanks... (5 Replies)
Discussion started by: dsfreddie
5 Replies
9. UNIX for Advanced & Expert Users
Hi Am Using Unix Ksh ...
I have a Table called date
select * from date ;
Date
01/02/2013
06/02/2013
I need the output as
Missing Date
01/02/2013
02/02/2013
03/02/2013
04/02/2013
05/02/2013
06/02/2013 (2 Replies)
Discussion started by: Venkatesh1
2 Replies
10. Shell Programming and Scripting
Hi Team,
I need to connect to a prod server and need to get the files which falls between two dates. I should not create ant files on that machine.
I am using korn shell.
Your help is very much appreciated.
Vinay (13 Replies)
Discussion started by: gvkumar25
13 Replies
LEARN ABOUT DEBIAN
conjunct
CONJUNCT(1) General Commands Manual CONJUNCT(1)
NAME
conjunct - find dates of equinox or new or full moon
SYNOPSIS
conjunct [options]
DESCRIPTION
conjunct searches for one of these events: spring equinox (default), summer solstice, autumn equinox, winter solstice, new moon, or full
moon.
OPTIONS
-s, --start date
Set starting date (default is current date). The date may be either a Julian day number (e.g. 2454180.0 for noon, 2007 March 20) or
an ISO 8601 date (e.g. 2007-03-20).
-e, --end date
Set ending date (default is one year from now).
-V, --vernal, --spring
Search for spring equinox (default).
-S, --summer
Search for summer solstice.
-A, --autumn, --fall
Search for autumn equinox.
-W, --winter
Search for winter solstice.
-N, --newmoon
Search for new moon.
-F, --fullmoon
Search for full moon.
-h, --help
Show summary of options.
SEE ALSO
aa(1).
AUTHOR
conjunct was written by Stephen L. Moshier <steve@moshier.net>.
This manual page was written by James R. Van Zandt <jrv@debian.org>, for the Debian project (but may be used by others).
August 24, 2006 CONJUNCT(1)