home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.novell:11237 bit.listserv.novell:20074 fido.ger.clipper:36 maus.lang.clipper:51
- Newsgroups: comp.sys.novell,bit.listserv.novell,fido.ger.clipper,maus.lang.clipper
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!news.byu.edu!ux1!fcom.cc.utah.edu!gateway.univel.com!ns.novell.com!novell.com!dhoward
- From: dhoward@novell.com (Dirk W. Howard)
- Subject: Re: Need C-source or a tool to get direct the NOVELL 3.11 server time
- Message-ID: <dhoward.265.0@novell.com>
- Sender: usenet@Novell.COM (Usenet News)
- Nntp-Posting-Host: dhoward.nsd.provo.novell.com
- Organization: Novell, Inc.
- References: <1993Jan7.104024.16959@news.uni-stuttgart.de>
- Date: Thu, 7 Jan 1993 21:51:56 GMT
- Lines: 83
-
- In article <1993Jan7.104024.16959@news.uni-stuttgart.de> wnkretz@ikesg1.energietechnik.uni-stuttgart.de (Oliver Kretzschmar) writes:
- >From: wnkretz@ikesg1.energietechnik.uni-stuttgart.de (Oliver Kretzschmar)
- >Subject: Need C-source or a tool to get direct the NOVELL 3.11 server time
- >Date: Thu, 7 Jan 1993 10:40:24 GMT
- >
- >
- > Hey,
- >
- > I am looking for a tool or C-source to get the time direct
- > from a NOVELL V3.11 server. I need this server time for
- > a CLIPPER program that controls time limited accesses.
- > Please mail me your informations.
- >
- > Thanks for your efforts,
- >
- >--
- > NAME : O.Kretzschmar Inst.IKE / University Stuttgart
- > PHONE: +49 711 685 2130 Pfaffenwaldring 31
- > FAX : +49 711 685 2010 7000 Stuttgart 80
- > EMAIL: wnkretz@ikesg1.energietechnik.uni-stuttgart.de
-
-
- Here is an assembly routine to do what you want. Here is also a small C
- program to show how it is called.
-
- ;----------------------------------------------------
-
- _text segment byte public 'code'
- assume cs:_text
-
- public _TIME
-
- _TIME proc near
- push bp
- mov bp, sp
- mov ah, 0E7h
- mov dx, [bp+4]
- int 21h
- pop bp
- ret
- _TIME endp
-
-
- _text ends
- end
-
- ;------------------------------------------------------
-
- /******************************************************/
-
- #include <stdio.h>
-
- struct TimeDate
- {
- char year;
- char month;
- char day;
- char hour;
- char minute;
- char second;
- char weekDay;
- };
-
-
- main()
- {
- struct TimeDate servTime;
-
- TIME(&servTime);
- printf("%02d/%02d/%02d %02d:%02d:%02d %d\n",
- servTime.month, servTime.day, servTime.year,
- servTime.hour, servTime.minute, servTime.second,
- servTime.weekDay);
- return(0);
- }
-
- /******************************************************/
-
- ---------------------------------------------------------------------------
- Dirk W. Howard These are my personal opinions. No one else
- Novell Technical Support in their right mind would claim them.
- dhoward@novell.com
- ---------------------------------------------------------------------------
-