Sponsored Content
Full Discussion: date problem
Top Forums Shell Programming and Scripting date problem Post 302504661 by aishsimplesweet on Tuesday 15th of March 2011 06:16:32 AM
Old 03-15-2011
okkk can u tell me solution for my operating system

it's imp to me


or

can you tell me the solution if i want to find the last monday of the current date in unix
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

date problem

when you typed date it gives an output: Fri Apr 12 10:07:59 MET DST 2002 how can i adjust this settings so it should read: Fri Apr 12 10:07:59 GMT 2002 i've already search the forum but the answer was never completed. by the way my UNIX is in solaris 7... ;) thanks. (2 Replies)
Discussion started by: inquirer
2 Replies

2. Shell Programming and Scripting

Problem with the date help

Hi everybody I have a problem with a shell. It runs every night just once a night on my sun system. #!/bin/ksh export pfad_work=/usr/users/ftp/testdaten export pfad_daten=/u01/projects/iris_unix/inp_test_daten/data export pfad_term=/u01/projects/iris_unix/inp_test_term/data cd... (2 Replies)
Discussion started by: Peterh
2 Replies

3. Shell Programming and Scripting

small date problem

Hi there I currently use a line in a script ndate=$(date +"%d/%m/%Y") This obviously returns the date in a format i have chosen. However, I need to come up with a solution for weekends and as such need a way of returning todays date minus two days in the same format (24/11/2004) so for... (3 Replies)
Discussion started by: hcclnoodles
3 Replies

4. Shell Programming and Scripting

problem in date

Hai, i need the date should be older than 30 days input 14-02-2006 output 15-01-2006 Please help me (1 Reply)
Discussion started by: readycpbala
1 Replies

5. Shell Programming and Scripting

problem with date

i have a process ---------------------------------------------------------------------- pipe 1044528 1278036 4 Dec 07 - 58:23 java -Xms128m -Xmx1024m -D_AppName=DBMaint com.eMeter.dbmaint.DBMaintAdapter /home/pipe/conf/appProperties/DBMaint.properties root 1073166 1134628 0 Feb... (2 Replies)
Discussion started by: ali560045
2 Replies

6. Shell Programming and Scripting

simple date problem

i have a script that grep for today date a=`date +"%F"`--------greps current/today date wat if suppose i want to grep a date for yesterday... how to do that using the above format: i,e 2008-01-20 (4 Replies)
Discussion started by: ali560045
4 Replies

7. AIX

problem with date

hi friends I am using AIX 5.2 version when ever i try to use echo $(date -d yesterday +"%Y%m%d") I am getting error as date: not recognized flag d please help me solve this. I wanted to find the next date from a given date. I tried using diff script but all of them failed at some... (5 Replies)
Discussion started by: sameerspice
5 Replies

8. Shell Programming and Scripting

Date time problem

Hi Guys, I have a file a.txt Start Date/Time End Date/Time from Prob_Dura. ----------------- ----------------- ----- ------ 20090525 23:58:59 20090526 00:00:00 machine1 000051 20090525 23:58:09 20090526 00:00:11 machine2 000150 The perl or shell script can: 1. remove... (4 Replies)
Discussion started by: jimmy_y
4 Replies

9. Shell Programming and Scripting

Date Range problem

Hi , I need a function that verfies the given date is between start date and end date . I have written this but this not working if start date is 1900/01/01 Below is my code validateDate() { RC=$# if then return 0 else ... (2 Replies)
Discussion started by: Satyak
2 Replies

10. Shell Programming and Scripting

Date Format Problem

I have written a code in Linux environment which compares two dates and print "correct" if 1st date is less than 2nd date. But when I'm running the same code in SunOS environment, "date -d is an illegal format" is the error it is throwing. How different should my code be so that it executes well in... (18 Replies)
Discussion started by: Chandan_Bose
18 Replies
WeekCalculator(3pm)					  LogReport's Lire Documentation				       WeekCalculator(3pm)

NAME
Lire::WeekCalculator - handle different weeknumbering schemes SYNOPSIS
use Lire::WeekCalculator; my $week_calc = new Lire::WeekCalculator(); my $week_no = $week_calc->week_number( $time ); DESCRIPTION
We support three values for LR_WEEK_NUMBERING: ISO (strftime's %V): week starts on monday; W (week starts on monday) and U (week starts on sunday). See strftime(1). CONSTRUCTOR
new( %params ) Creates a new week calculator. The style of week numbering is selected using the "style" parameter. If that parameter is omitted, it defaults to the style set in 'lr_week_numbering' configuration variable. style() Returns the week numbering style used. This will be either "U", "W" or "ISO". week_number( $time ) Returns the week number of $time according the current week numbering scheme. The week number returned is between 1 and 53. week_idx( $time ) Returns the week index of $time according to the week numbering scheme. The week index is Lire specific and is used to normalise computations between different scheme in regards of the first incomplete week of the year. In the ISO case, the week index is always equals to week_number() - 1, for the other style, the week index of the week 0 will be one less than the last week number of the previous year. last_week_of_year($year) Returns the week number of the last week in the year $year. week_start( $year, $week_no ) Returns the epoch time of the first day of week $week_no in year $year when calculated using current style. find_year_week1_start_date($year) Returns the date (epoch) at which the first day of the first week of the year $year starts. strformat() Returns a string that can be used as the format specificier in calls to strftime to print the week number of this style. strfdate() Emulates POSIX::strftime() but picks up the %V if the system strftime doesn't support it. Should be called whenever you use format strings that may contain week-of-the-year-codes. AUTHORS
Joost van Baal <joostvb@logreport.org>, Francis J. Lacoste <flacoste@logreport.org>, Wessel Dankers <wsl@logreport.org> VERSION
$Id: WeekCalculator.pm,v 1.16 2006/07/23 13:16:30 vanbaal Exp $ COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org This file is part of Lire. Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. Lire 2.1.1 2006-07-23 WeekCalculator(3pm)
All times are GMT -4. The time now is 06:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy