Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • The Date::Time issue apart, this is a nice idea.

    I remember that during my wife's first pregnancy I wrote a script to tell me what week she was in.

    It is the type of thing that I haven't had time to write at any time since then. :-)

    Good work.

    • Just out of curiosity, can you remember, which method your script was based on?

      jonasbn
      • Hmm... I don't know about what's the habit where you live, but here it's customary to start counting from the start of the last period. So that's well 2 weeks or so, before the actual pregnancy.

        No, it's not just here [birthingnaturally.net].

        • Hello,

          We use the same calculation methods as described on the page you refer to.

          I have created some tests validating the numbers of my calculations against the numbers we got from our own doctor (in the case of my girlfriend's pregnancy) and these are a match (I am currently trying to obtain more test data).

          But I do not understand what you are referring to since the methods I use all are based on the first date of the last period (that is common for the 3 methods I have knowledge of), they are not based on a conception date.

          I have not implemented a calculate_conception_date even though I could possibly estimate it as well as I attempt to estimate the birthdate.

          Do I understand your post correctly, that there might be problem with the calculation of week and month number, which could be of by 2 weeks, is that what you are referring to?