10-28-2009
No, UTC never has 25 hour days. You need to have Daylight Savings Time to see one 23 hour and one 25 hour day per year. Switching the time zone to GMT might fix it. Or maybe you can set the time to noon rather than midnight...then 24 hours should always be enough. Our faq section has my datecalc script which is another option and that is what I would use.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Our system has an option to supply your timezone in area of world you want to keep time for user transactions and such.
It keeps time zone for user in database as for example -5 for EST.
The problem is we are in EDT -4 (daylight savings time) so the time is displayed wrong.
We can put the... (2 Replies)
Discussion started by: photon
2 Replies
2. UNIX for Dummies Questions & Answers
Does anyone know how to reset a network printer to allow for the daylight savings?:) (0 Replies)
Discussion started by: Tweedy
0 Replies
3. AIX
Hi guys,
OS: AIX 5.3.0.0
I'm from Portugal and I had problems about Day Light changing time, the hour's changes in first Sunday of November, but it's wrong because in Europe the day light need to change in last Sunday of October. My TZ is
TZ=GMT0BST, that I think BST it's British Summer Time. I... (2 Replies)
Discussion started by: uadm26
2 Replies
4. Red Hat
Hi All,
I am trying to send a mail from my application through SMTP in solaris 9 but unable to send a mail.Same code is able to send mail in Windows.
As unix has more security,So as per me,it is due to security reason..
So please let me know what I need to do to send a mail properly.
what... (5 Replies)
Discussion started by: smartgupta
5 Replies
5. Shell Programming and Scripting
I need to increment a date value through shell script.
Input value consist of start date and end date in DATE format of unix.
For eg.
I need increment a date value of 1/1/09 to 31/12/09 i.e for a whole yr.
The output must look like
1/1/09
2/2/09
.
.
.
31/1/09
.
.
1/2/09
.
28/2/09... (1 Reply)
Discussion started by: sunil087
1 Replies
6. Shell Programming and Scripting
Hi,
I have a variable lets say DATA_DATE.
I have to pass some value to this variable in YYYYMMDD format.
lets say today I have passed this variable as :
DATA_DATE=20100107
Then pls help me how to calculate another variable DATA_DATE1 (which is DATA_DATE+1).
The code should work... (3 Replies)
Discussion started by: 46019
3 Replies
7. Shell Programming and Scripting
hi Friends,
Today_Dt=`date "+%Y-%m-%d"`
So the Today date is 2010-05-03
I have a file which has date values as below
2010-04-27
2010-04-02
2010-04-18
2010-04-28
2010-04-29
.. (1 Reply)
Discussion started by: Gopal_Engg
1 Replies
8. Shell Programming and Scripting
hi experts,
my requirement is like this i need to develop a shell script to update date part with new incremental date time in file some 'X' which is kept at some server location incrementing every two hours.as i am new to this scripting i need support from u people,thanx in advance (1 Reply)
Discussion started by: amanmro
1 Replies
9. Shell Programming and Scripting
Hi friends,
I wanna check if any given date is Friday, as an example I have written a simple script as shown below
#!/bin/ksh
v_date=20140325
if ; then
echo 'HELLO'
else
echo 'BYE'
fi
But when I am executing its throwing an error as shown below, (3 Replies)
Discussion started by: Aditya_001
3 Replies
10. Linux
Hi all,
currently I'm facing a issue in linking a .so file.
In my build machine, I've libcrypto.so.6 and there is a softlink as libcrypto.so.
In my make file I'm trying to link to the lib using -L -lcrypto and it is success and created my test.exe.
When I copy this test.exe to other... (4 Replies)
Discussion started by: vijkrr
4 Replies
LEARN ABOUT DEBIAN
time::julianday
Time::JulianDay(3pm) User Contributed Perl Documentation Time::JulianDay(3pm)
NAME
Time::JulianDay -- Julian calendar manipulations
SYNOPSIS
use Time::JulianDay
$jd = julian_day($year, $month_1_to_12, $day)
$jd = local_julian_day($seconds_since_1970);
$jd = gm_julian_day($seconds_since_1970);
($year, $month_1_to_12, $day) = inverse_julian_day($jd)
$dow = day_of_week($jd)
print (Sun,Mon,Tue,Wed,Thu,Fri,Sat)[$dow];
$seconds_since_jan_1_1970 = jd_secondslocal($jd, $hour, $min, $sec)
$seconds_since_jan_1_1970 = jd_secondsgm($jd, $hour, $min, $sec)
$seconds_since_jan_1_1970 = jd_timelocal($sec,$min,$hours,$mday,$month_0_to_11,$year)
$seconds_since_jan_1_1970 = jd_timegm($sec,$min,$hours,$mday,$month_0_to_11,$year)
DESCRIPTION
JulianDay is a package that manipulates dates as number of days since some time a long time ago. It's easy to add and subtract time using
julian days...
The day_of_week returned by day_of_week() is 0 for Sunday, and 6 for Saturday and everything else is in between.
ERRATA
Time::JulianDay is not a correct implementation. There are two problems. The first problem is that Time::JulianDay only works with
integers. Julian Day can be fractional to represent time within a day. If you call inverse_julian_day() with a non-integer time, it will
often give you an incorrect result.
The second problem is that Julian Days start at noon rather than midnight. The julian_day() function returns results that are too large by
0.5.
What to do about these problems is currently open for debate. I'm tempted to leave the current functions alone and add a second set with
more accurate behavior.
There is another implementation in Astro::Time that may be more accurate.
GENESIS
Written by David Muir Sharnoff <cpan@dave.sharnoff.org> with help from previous work by Kurt Jaeger aka PI
<zrzr0111@helpdesk.rus.uni-stuttgart.de>
based on postings from: Ian Miller <ian_m@cix.compulink.co.uk>; Gary Puckering <garyp%cognos.uucp@uunet.uu.net> based on
Collected Algorithms of the ACM ?; and the unknown-to-me author of Time::Local.
LICENSE
Copyright (C) 1996-1999 David Muir Sharnoff. License hereby granted for anyone to use, modify or redistribute this module at their own
risk. Please feed useful changes back to cpan@dave.sharnoff.org.
perl v5.12.3 2011-05-06 Time::JulianDay(3pm)