12-06-2012
some hints for you:
calculate by epoc
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I am trying to find out a way to calculate how many hours are between 2 dates but from a specific time range, actually working hours (Monday to Friday 09:00 - 18:00).
What I mean is for example
date1 = Monday 21 July 2008 22:00:00 so in python 2008-07-21 22:00:00
date2 = Wednesday... (5 Replies)
Discussion started by: sickboy
5 Replies
2. Shell Programming and Scripting
Hi.,
After retrieving values from DB I have two datestamps in format:
12/01/2010:05:40:00 AM and 12/01/2010:06:00:00 PM.
general time format: MM/DD/YYYY:HH:MM:SS AM or PM
Any quick solution to get the difference of two in the format : 1 day(s) 12:20:00
Thanks., (6 Replies)
Discussion started by: IND123
6 Replies
3. Shell Programming and Scripting
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Discussion started by: worm
10 Replies
4. Shell Programming and Scripting
I extract dates from the log file and need to calculate days between two dates. My dates are in yyyyMmmdd format. Example:
$d1=2011 Oct 21
$d2=2012 Feb 20
I need to calculate the number of days between $d2 and $d1. This is on Solaris.
Any ideas?
Thanks,
djanu (4 Replies)
Discussion started by: djanu
4 Replies
5. Web Development
Is this code good for this purpose?
<?php
$date1 = mktime(0,0,0,01,01,1991);
$date2 = mktime(0,0,0,03,22,2012);
$diff = $date2 - $date1;
$days = $diff / (60*60*24);
echo ($days . "<br />");
?> (3 Replies)
Discussion started by: kovacsakos
3 Replies
6. Shell Programming and Scripting
I wrote the day calculator also in bash. I would like to now, that is it good so?
#!/bin/bash
datum1=`date -d "1991/1/1" "+%s"`
datum2=`date "+%s"`
diff=$(($datum2-$datum1))
days=$(($diff/(60*60*24)))
echo $days
Thanks in advance for your help! (3 Replies)
Discussion started by: kovacsakos
3 Replies
7. Shell Programming and Scripting
I want the difference between two following date using scripts in terms of no.of days. How I can accomplish this.
lastdate=Tue Nov 13 10:30:56 2012
currdate=Wed Dec 15 15:58:21 PAKST 2012
Ouput should be like this:
Your Password will expire after = 32 Days on Wed Dec 15 15:58:21 PAKST... (1 Reply)
Discussion started by: m_raheelahmed
1 Replies
8. Shell Programming and Scripting
Hi,
how to calculate the time difference between PST date and PDT date in perl scripting.
date1: Mon Dec 31 16:00:01 PST 2015
date2: Tue Mar 19 06:09:30 PDT 2013
and also difference between PST-PST and PDT-PDT
need difference in months or days (months prefereble). (3 Replies)
Discussion started by: praveen265
3 Replies
9. Shell Programming and Scripting
Hi Guys,
Need a small help, how do i get the difference between two dates (in days) in KSH shell
My date is in mm/dd/YYYY format,
Is there a function to get time stamp from the respective date and time ( mm/dd/yyyy HH:MM:SS) (1 Reply)
Discussion started by: selvankj
1 Replies
10. Shell Programming and Scripting
In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13.
I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT REDHAT
perlepoc
PERLEPOC(1) Perl Programmers Reference Guide PERLEPOC(1)
NAME
README.epoc - Perl for EPOC
SYNOPSIS
Perl 5 README file for the EPOC Release 5 operating system.
INTRODUCTION
EPOC is an OS for palmtops and mobile phones. For more informations look at: http://www.symbian.com/
This is a port of perl to the epocemx SDK by Eberhard Mattes, which itself uses the SDK by symbian. Essentially epocemx it is a POSIX look
alike environment for the EPOC OS. For more informations look at: http://www.windhager.de/~mattes/epocemx/
perl and epocemx runs on Epoc Release 5 machines: Psion 5mx, 5mx Pro, Psion Revo, Psion Netbook and on the Ericson M128. It may run on Epoc
Release 3 Hardware (Series 5 classic), too. For more information about this hardware please refer to http://www.psion.com/
Vendors which like to have support for their devices are free to send me a sample.
INSTALLING PERL ON EPOC
You can download a ready-to-install version from http://www.science-computing.de/o.flebbe/perl/
You will need at least ~6MB free space in order to install and run perl.
Please install the emxusr.sis package from http://www.windhager.de/~mattes/epocemx/ first.
Install perl.sis on the EPOC machine. If you do not know how to do that, consult your PsiWin documentation.
Perl itself and its standard library is using 4 MB disk space. Unicode support and some other modules are left out. (For details, please
look into epoc/createpkg.pl). If you like to use these modules, you are free to copy them from a current perl release.
STARTING PERL ON EPOC
Please use the epocemx shell to start perl. perl integrates with the conventions of epocemx.
Editors on Epoc
A suitable text editor can be downloaded from symbian http://www.symbian.com/developer/downloads/files/editor.zip
Features of Perl on Epoc
The built-in function EPOC::getcwd returns the current directory.
Restrictions of Perl on Epoc
Features are left out, because of restrictions of the POSIX support in EPOC:
o socket IO is only implemented poorly. You can only use sysread and syswrite on them. The commands read, write, print, <> do not work
for sockets. This may change iff epocemx supports sockets.
o kill, alarm and signals. Do not try to use them. This may be impossible to implement on EPOC.
o select is missing.
o binmode does not exist. (No CR LF to LF translation for text files)
o EPOC does not handle the notion of current drive and current directory very well (i.e. not at all, but it tries hard to emulate one).
See PATH.
o Heap is limited to 4MB.
o Dynamic loading is not implemented.
Compiling Perl 5 on the EPOC cross compiling environment
Sorry, this is far too short.
o You will need the epocemx SDK from Eberhard Mattes.
o Get the Perl sources from your nearest CPAN site.
o Unpack the sources.
o Build a native perl from this sources... Make sure to save the miniperl executable as miniperl.native.
Start again from scratch
cp epoc/* .
./Configure -S
make
cp miniperl.native miniperl
touch miniperl.exe
make
perl createpkg.pl
emxsis perl.pkg perl.sis
SUPPORT STATUS OF PERL ON EPOC
I'm offering this port "as is". You can ask me questions, but I can't guarantee I'll be able to answer them. Since the port to epocemx is
quite new, please check the web for updates first.
Very special thanks to Eberhard Mattes for epocemx.
AUTHOR
Olaf Flebbe <o.flebbe@science-computing.de> http://www.science-computing.de/o.flebbe/perl/
LAST UPDATE
2002-03-26
perl v5.8.0 2003-02-18 PERLEPOC(1)