1 | ##!/usr/bin/env python |
---|
2 | #################################################################### |
---|
3 | #PIEDLOUP Sebastien |
---|
4 | #sebastien.piedloup@ipsl.jussieu.fr |
---|
5 | #juillet 2003 |
---|
6 | #################################################################### |
---|
7 | |
---|
8 | #################################################################### |
---|
9 | #Module principal qui appelle les module de date et de calendrier, il affiche les informations de date |
---|
10 | #################################################################### |
---|
11 | |
---|
12 | |
---|
13 | import recup_date,calend365,sys,os |
---|
14 | |
---|
15 | #################################################################### |
---|
16 | #Fonction qui incremente une date a partir du calendrier de 365 jours |
---|
17 | #################################################################### |
---|
18 | def date_fin(a,m,j,i): |
---|
19 | return calend365.pre(a,m,j+i) |
---|
20 | |
---|
21 | #################################################################### |
---|
22 | ad,md,jd,p,n=map(int,recup_date.recup()) |
---|
23 | d=n*p/86400 |
---|
24 | af,mf,jf=date_fin(ad,md,jd-1,d) |
---|
25 | print ad,md,jd,p,n,d,af,mf,jf |
---|