[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Date/time funktioner



Tak skal du have.

Bjarke

Anders Bo Rasmussen wrote:
> 
> On Wed, 23 May 2001 18:35:19 +0200,
> Bjarke Bruun <sslug@sslug> wrote:
> 
> >Jeg har et skole program som vi er flere til at udvikle. Nogle sider på
> >windows og andre på linux. Det giver nogle problemer eg. conio.h getch()
> >osv, men det er ikke det værste.
> >
> >Jeg mangler nogle dato/tids funktioner, da der skal laves en lokal (ikke
> >med syslog) logfil med data og tid i, men jeg kan ikke finde nogen
> >egentlig info om det og time.h er ikke den mest oplysende man sider jeg
> >har set længe.
> >
> >windows koden ser såleds ud:
> >
> >--
> >int w,m,y;
> >struct date d;
> >getdate(&d);
> >w=d.da_day;m=d.da_mon;y=d.da_year;
> >--
> >
> >Er det nogen linux "variant" af denne?
> 
> time (se man time). Den står i K&R så den burde da også virke under
> windows.
> 
> Hvis i ikke skal bruge tallene direkte, men kun til loging kan i også
> kigge på strftime eller asctime (står også i K&R).
> 
> --
> Anders Bo Rasmussen          mailto:sslug@sslug
> Frimestervej 42 1.tv         http://www.fuzz.dk
> 2400 Kbh. NV
> Denmark

-- 
Bjarke Bruun - E-mail: sslug@sslug http://linux.hhknet.dk
   __
  / /  (_)__  __ ____  __
 / /__/ / _ \/ // /\ \/ /  . . .  t h e   c h o i c e   o f   a
/____/_/_//_/\_,_/ /_/\_\              G N U   g e n e r a t i o n . . .


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *