11-22-2006
Pretty easy with perl:
$ perl -e 'print scalar localtime(shift),"\n"' 1164876000
Thu Nov 30 03:40:00 2006
Even if you have not installed a recent version of perl, HP-UX should have an old version in /usr/contrib/bin that is good enough for this.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
How do i translate datevalues in unix to normal dates.
and how do i translate normal dates in to datevalues.
I'm using the unix-date.
Sample:
1067949360 to 4-11-03 12:36
and
4-11-03 12:36 to 1067949360
I want to built a script with a question to the user: give in date... (4 Replies)
Discussion started by: Frederik
4 Replies
2. Solaris
hi all
how do we get the milli seconds in sun unix?
i am using
date +%Y%m%d%H%M%S
to get the unique id and create the file based on this.
but the problem is that if process to load the table takes only less than 1 sec i am getting errror on my table which have the primary key.
how... (2 Replies)
Discussion started by: r2b
2 Replies
3. Shell Programming and Scripting
hi all
how do we get the milli seconds in sun unix?
i am using
date +%Y%m%d%H%M%S
to get the unique id and create the file based on this.
but the problem is that if process to load the table takes only less than 1 sec i am getting errror on my table which have the primary key.
how... (1 Reply)
Discussion started by: r2b
1 Replies
4. Shell Programming and Scripting
Need a little help developing a ksh script. Have read through Perderabo's datecalc routine and it does not seem to fit the function I am looking for. Basically what I am trying to do is find any file (in a specific directory) that was created within the last five minutes. I am not a programming... (3 Replies)
Discussion started by: synergy_texas
3 Replies
5. Shell Programming and Scripting
Can i get date format in micro seconds in unix
example
2012-01-27- 12.22.04.568722
Any help is appreciable (2 Replies)
Discussion started by: srichunduru
2 Replies
6. Shell Programming and Scripting
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies
7. Shell Programming and Scripting
I am trying to get date to display decimal
Desired output 1350386096256.12
I know this can be done with printf, but are not able to make it work.
I have tested this and many otherprintf "%.2f" $(($(date +%s%N)/1000000)) (8 Replies)
Discussion started by: Jotne
8 Replies
8. Shell Programming and Scripting
Hello,
I have a file with below contents and need to set seconds value to 00 (as you can see few time stamps are with 01 seconds)
18:16:00 8192 7301 89 11
18:21:00 8192 7305 89 11
18:26:00 8192 7306 89 11
18:31:00 8192 7306 ... (6 Replies)
Discussion started by: reddyr
6 Replies
9. Shell Programming and Scripting
Hi,
Need to subtract 5 seconds after syncing my Linux server from NTP like;
#ntpdate time.myorg.int.
This script will only run once in each morning at 9 AM.
Please help me. (4 Replies)
Discussion started by: refra
4 Replies
10. Shell Programming and Scripting
Hi,
I have a string date to my unix script(sun solaris). I wanted to convert it into unix date so that I can use it in a conditional statement. Please see below:
MyTest.sh -s 2018-05-09
suppdt=$1 # string date passed via arguement as 2018-04-09
curryr=`date '+%Y'`
nextyr=`expr... (2 Replies)
Discussion started by: Saanvi1
2 Replies
LEARN ABOUT DEBIAN
gnome2::uidefs
Gnome2::UIDefs(3pm) User Contributed Perl Documentation Gnome2::UIDefs(3pm)
NAME
Gnome2::UIDefs
METHODS
scalar = Gnome2::UIDefs->key_mod_clear
scalar = Gnome2::UIDefs->key_mod_close
scalar = Gnome2::UIDefs->key_mod_close_window
scalar = Gnome2::UIDefs->key_mod_copy
scalar = Gnome2::UIDefs->key_mod_cut
scalar = Gnome2::UIDefs->key_mod_find
scalar = Gnome2::UIDefs->key_mod_find_again
scalar = Gnome2::UIDefs->key_mod_new
scalar = Gnome2::UIDefs->key_mod_new_game
scalar = Gnome2::UIDefs->key_mod_new_window
scalar = Gnome2::UIDefs->key_mod_open
scalar = Gnome2::UIDefs->key_mod_paste
scalar = Gnome2::UIDefs->key_mod_pause_game
scalar = Gnome2::UIDefs->key_mod_print
scalar = Gnome2::UIDefs->key_mod_print_setup
scalar = Gnome2::UIDefs->key_mod_quit
scalar = Gnome2::UIDefs->key_mod_redo
scalar = Gnome2::UIDefs->key_mod_redo_move
scalar = Gnome2::UIDefs->key_mod_replace
scalar = Gnome2::UIDefs->key_mod_save
scalar = Gnome2::UIDefs->key_mod_save_as
scalar = Gnome2::UIDefs->key_mod_select_all
scalar = Gnome2::UIDefs->key_mod_undo
scalar = Gnome2::UIDefs->key_mod_undo_move
scalar = Gnome2::UIDefs->key_name_clear
scalar = Gnome2::UIDefs->key_name_close
scalar = Gnome2::UIDefs->key_name_close_window
scalar = Gnome2::UIDefs->key_name_copy
scalar = Gnome2::UIDefs->key_name_cut
scalar = Gnome2::UIDefs->key_name_find
scalar = Gnome2::UIDefs->key_name_find_again
scalar = Gnome2::UIDefs->key_name_new
scalar = Gnome2::UIDefs->key_name_new_game
scalar = Gnome2::UIDefs->key_name_new_window
scalar = Gnome2::UIDefs->key_name_open
scalar = Gnome2::UIDefs->key_name_paste
scalar = Gnome2::UIDefs->key_name_pause_game
scalar = Gnome2::UIDefs->key_name_print
scalar = Gnome2::UIDefs->key_name_print_setup
scalar = Gnome2::UIDefs->key_name_quit
scalar = Gnome2::UIDefs->key_name_redo
scalar = Gnome2::UIDefs->key_name_redo_move
scalar = Gnome2::UIDefs->key_name_replace
scalar = Gnome2::UIDefs->key_name_save
scalar = Gnome2::UIDefs->key_name_save_as
scalar = Gnome2::UIDefs->key_name_select_all
scalar = Gnome2::UIDefs->key_name_undo
scalar = Gnome2::UIDefs->key_name_undo_move
scalar = Gnome2::UIDefs->pad
scalar = Gnome2::UIDefs->pad_big
scalar = Gnome2::UIDefs->pad_small
SEE ALSO
Gnome2
COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
perl v5.14.2 2011-11-16 Gnome2::UIDefs(3pm)