Sponsored Content
Full Discussion: Date function question
Top Forums UNIX for Dummies Questions & Answers Date function question Post 7489 by kandanmv on Wednesday 26th of September 2001 11:15:31 PM
Old 09-27-2001
gee thanks.
but the easiest way would be to use perl

# perl -e 'printf "%s", scalar localtime(time-86400)'

regds,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Yesterday's date function

I am using this function to calculate yesterday's date and return it in the following format: Jan 09 date '+%b %d %Y' | { read MONTH DAY YEAR DAY=`expr "$DAY" - 1` case "$DAY" in 0) MONTH=`expr "$MONTH" - 1` case "$MONTH" in ... (4 Replies)
Discussion started by: ssmiths001
4 Replies

2. Shell Programming and Scripting

date function

hi, I have to ftp previous days file from a directory to another location. The name of the files are like "xxx20060225" (yyyymmdd format) "xxx20060226" ls -lrt xxx*| tail -2| head -1 will give me the file, but if i could get anything... (2 Replies)
Discussion started by: abey
2 Replies

3. Shell Programming and Scripting

Wrong date function

Hi, I am getting some very strange output when using date function in PERL on Solaris. Infact the month portion is wrong and it is 1 less then the current, means today it is responding as month =3 , andthis should be 4 ------> April Any help my code is ($day, $month, $year) =... (3 Replies)
Discussion started by: Asteroid
3 Replies

4. Shell Programming and Scripting

Date Function

Hi, My file format is: E102,0,21-04-2007,0,2/25/1994,E003,A,125400,10450,60.2884620 E103,0,21/04/2007,0,2/2/1996,E003,A,125400,10450,60.2884620 E104,0,04/21/2007,0,2/2/1996,E003,A,125400,10450,60.2884620 E105,0,21-APR-2007,0,2/2/1996,E003,A,125400,10450,60.2884620... (1 Reply)
Discussion started by: charandevu
1 Replies

5. Shell Programming and Scripting

Date Function

Hi, My file format is: E102,0,21-04-2007,0,2/25/1994,E003,A,125400,10450,60.2884620 E103,0,21/04/2007,0,2/2/1996,E003,A,125400,10450,60.2884620 E104,0,04/21/2007,0,2/2/1996,E003,A,125400,10450,60.2884620 E105,0,21-APR-2007,0,2/2/1996,E003,A,125400,10450,60.2884620... (1 Reply)
Discussion started by: charandevu
1 Replies

6. Web Development

work with date function

hi, how can i can pass the value of unixformat to date/time? and how can i retrieve the day/month/year from a date? thanks a lot for your help ps:i using php (1 Reply)
Discussion started by: jasonx22
1 Replies

7. UNIX for Advanced & Expert Users

Friendz.. plz help me on this date function.

:confused: Hi there. Hi frndz, I have to script a shell in such a way that by giving the current date, it should give the previous saturday date and next sunday date as output. eg: Input - 01-01-2008 O/p - last saturady- 30-12-2007(ddmmyy) Next Sunday- 05-01-2008 ... (14 Replies)
Discussion started by: psn123
14 Replies

8. UNIX for Advanced & Expert Users

Get date from cal function

Cal Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 cal | awk '{print $7}' Sat 13 20 27 In the above output i am missing 6 because the first column is empty so it is shfting. How... (3 Replies)
Discussion started by: ukatru
3 Replies

9. Shell Programming and Scripting

Date function

I read man page for etc/shadow field.. on the 8th field, i assume that's the field to change account expire date. my question is: What value does the 8th field keep? i assume it's 13514 instead of "Date" value such as 11/10/08. on the man page, it said: " expire value = 13514 = jan 1,... (11 Replies)
Discussion started by: c00kie88
11 Replies

10. Shell Programming and Scripting

Date Reformatting function

Hi , I am trying to create a function with below requirements 1. It will take two parameters as Input. Date and Date format 2. Output will be in YYYYMMDD format. Example 1: Input: fn_date_reformatter('01-AUG-2014','DD-MON-YYYY') Output: 20140801 Example 2: Input:... (4 Replies)
Discussion started by: Anupam_Halder
4 Replies
Gtk2::Gdk::Geometry(3)					User Contributed Perl Documentation				    Gtk2::Gdk::Geometry(3)

NAME
Gtk2::Gdk::Geometry METHODS
geometry = Gtk2::Gdk::Geometry->new scalar = $object->base_height ($newvalue=undef) o $newvalue (scalar) scalar = $object->base_width ($newvalue=undef) o $newvalue (scalar) (new_width, new_height) = $geometry->constrain_size ($width, $height) (new_width, new_height) = $geometry->constrain_size ($flags, $width, $height) o ... (list) o $flags (Gtk2::Gdk::WindowHints) optional, usually inferred from $geometry The $flags argument, describing which fields in the geometry are valid, is optional. If omitted it will be inferred from the geometry itself. scalar = $object->gravity ($newvalue=undef) o $newvalue (scalar) scalar = $object->height_inc ($newvalue=undef) o $newvalue (scalar) scalar = $object->max_aspect ($newvalue=undef) o $newvalue (scalar) scalar = $object->max_height ($newvalue=undef) o $newvalue (scalar) scalar = $object->max_width ($newvalue=undef) o $newvalue (scalar) scalar = $object->min_aspect ($newvalue=undef) o $newvalue (scalar) scalar = $object->min_height ($newvalue=undef) o $newvalue (scalar) scalar = $object->min_width ($newvalue=undef) o $newvalue (scalar) scalar = $object->width_inc ($newvalue=undef) o $newvalue (scalar) scalar = $object->win_gravity ($newvalue=undef) o $newvalue (scalar) ENUMS AND FLAGS
flags Gtk2::Gdk::WindowHints o 'pos' / 'GDK_HINT_POS' o 'min-size' / 'GDK_HINT_MIN_SIZE' o 'max-size' / 'GDK_HINT_MAX_SIZE' o 'base-size' / 'GDK_HINT_BASE_SIZE' o 'aspect' / 'GDK_HINT_ASPECT' o 'resize-inc' / 'GDK_HINT_RESIZE_INC' o 'win-gravity' / 'GDK_HINT_WIN_GRAVITY' o 'user-pos' / 'GDK_HINT_USER_POS' o 'user-size' / 'GDK_HINT_USER_SIZE' SEE ALSO
Gtk2 COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Gdk::Geometry(3)
All times are GMT -4. The time now is 06:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy