date math

From: Andrew Gaffney (agaffney_at_skylineaero.com)
Date: 03/28/04


Date: Sat, 27 Mar 2004 18:52:52 -0600
To: beginners <beginners@perl.org>

I'm looking for a way to do some date math. I'm working on a payroll tracking system. I
want to provide a list of 2 week periods for the user to select. These periods start from
a hard-coded known start of pay period date. I want it to display the 6 most recent 2 week
periods. For example, my known start of pay period date is '2004-03-21.'. I want to count
off 2 week periods from that. So, my program should be able to give me '2004-03-21 -
2004-04-03', '2004-04-04 - 2004-04-17', '2004-04-18 - 2004-05-01', etc. Once I have my
list, I can then find out which ones are the most recent and display them to the user. I
also need to be able to determine if a certain date is between 2 dates. I really only need
help with the date math part. Everything else I can do. Is there a module that can help me?

-- 
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


Relevant Pages

  • Re: LaTeX question
    ... Maarten having told me not to use $ in display equations, ... Enclosing your math in dollars signs, like $a+b$, produces math that ... About 2 years ago I was learning an advanced package ... your own until you learn the basics. ...
    (comp.text.tex)
  • Re: resolve to perpendicular components, because they are independent
    ... Continous time displayed one has in math only ... > A coordinate system can display two movements, ... > point onto the axes gives a point on the t-axis and one on the y-axis. ... >> in math & physics, ...
    (sci.physics)
  • Re: Programming languages for the very young
    ... > much about math. ... press buttons denoting the bills and coins they have in hand. ... a simple change-making operation and I could just glance at the display to ...
    (comp.lang.lisp)
  • Re: LaTeX question
    ... Maarten having told me not to use $ in display equations, ... Enclosing your math in dollars signs, like $a+b$, produces math that ... And you've got to understand that your manner of asking questions is ...
    (comp.text.tex)
  • Re: Mathematical cartoons (related to simplification)
    ... > math formula as an animation/cartoon. ... Also each display may not last the right amount of time... ... such an application would target might not get to see what is ...
    (sci.math)