[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Mathematics at DEC |
|
Moderator: | RUSURE::EDP |
|
Created: | Mon Feb 03 1986 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2083 |
Total number of notes: | 14613 |
890.0. "help with fiscal calendar needed" by COMICS::DEMORGAN (Richard De Morgan, UK CSC/CS) Thu Jun 23 1988 14:38
I've been conned into enhancing out TRS (Time Reporting System)
GROAN - it's written in C.
I'm having a bit of trouble with DEC fiscal dates: as I understand
it, the fiscal calendar works as follows (can anybody confirm?)
1. Fiscal quarters begin on the first sunday of july, october,
january and april.
2. Within each fiscal quarters, there are three fiscal months,
the first two being 4 weeks and the third being usually 5 weeks
(I think in some rare circumstances they can be 6 weeks).
The problem is: given an arbitrary date DD-MM-YYYY (and knowing about
leap years every 4 years, except not every 100 years, except every 400
years, except not every 2000 years - so as to get a good approximation
to 365.2422), how can the fiscal month and day be calculated (i.e.
fiscal month in 0 .. 11, fiscal day within fiscal month in range
0 .. 41).
I'm having difficulty trying to prove whether it's possible or not
- I think it must be, but I'm having difficulty formulating an
algorithm. Has anybody come across this problem before?
Thanks for any help.
T.R | Title | User | Personal Name | Date | Lines |
---|
890.1 | No help, but | POOL::HALLYB | The smart money was on Goliath | Thu Jun 23 1988 14:55 | 2 |
| Suggest you also ask in HACKERS (KP7), where a lot of date stuff
is discussed.
|
890.2 | Look in the ToolShed | AKQJ10::YARBROUGH | I prefer Pi | Thu Jun 23 1988 19:53 | 2 |
| There is a long, involved discussion of this in Conference METOO::TOOLSHED,
note 179. - Lynn
|
890.3 | METOO::SW_TOOLS_CATALOG.676 | SMURF::JMARTIN | Joseph A. Martin, ULTRIX kernel | Fri Jul 01 1988 18:15 | 3 |
| The discussion cited in .-1 makes a less specific reference to this
program.
\Joe
|
890.4 | It moved | CIVAGE::LYNN | Lynn Yarbrough @WNP DTN 427-5663 | Mon Feb 10 1992 16:54 | 2 |
| Note -< METOO::SW_TOOLS_CATALOG.676 >- has been deleted (as happens from
time to time) - so DIR/TIT for tools FISTIM and MITSIF.
|