source: tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/Utilitaire/sortie_date.py @ 8

Last change on this file since 8 was 8, checked in by orchidee, 14 years ago

import first tag equivalent to CVS orchidee_1_9_5 + OOL_1_9_5

File size: 964 bytes
Line 
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
13import recup_date,calend365,sys,os
14
15####################################################################
16#Fonction qui incremente une date a partir du calendrier de 365 jours
17####################################################################
18def date_fin(a,m,j,i):
19    return calend365.pre(a,m,j+i)
20
21####################################################################
22ad,md,jd,p,n=map(int,recup_date.recup())
23d=n*p/86400
24af,mf,jf=date_fin(ad,md,jd-1,d)
25print ad,md,jd,p,n,d,af,mf,jf
Note: See TracBrowser for help on using the repository browser.