Article View: news.software.readers
Article #49385Re: OT: slang time_t() function?
From: John E. Davis
Date: Mon, 21 Jun 1999 00:00
Date: Mon, 21 Jun 1999 00:00
40 lines
2054 bytes
2054 bytes
On 21 Jun 1999 06:00:13 GMT, Thorfinn <thorfinn@netizen.com.au> wrote: >This is sorta off-topic for news.software.readers, but I can't find a >slang group on my newsserver. > >Hrm. JED: Would you object if I started up an RFD and suchlike for >comp.lang.slang, and pushed it through to get a newgroup for it? I I have not objections. alt.lang.s-lang exists but not all servers carry it. >I was mucking about trying to find a way to get the current time as a >time_t value from slang... and I can't find one. There's the time() >function, which returns the current time as a string... If using a 1.3.x version of slang, you can use the _time function: _time SYNOPSIS Get the current time in seconds USAGE ULong_Type _time () DESCRIPTION The `_time' function returns the number of elapsed seconds since 00:00:00 GMT, January 1, 1970. The `ctime' function may be used to convert this into a string representation. SEE ALSO ctime, time, localtime, gmtime -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 One Hampshire St., Building NE80-6019 http://space.mit.edu/~davis Cambridge, MA 02139-4307
Technical Details
Message-ID:
<slrn7mrmk3.pjc.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn7mrl7b.ioq.thorfinn@netizen.com.au>Show Full Headers
Complete Article Headers
Message-ID: <slrn7mrmk3.pjc.davis@aluche.mit.edu> Subject: Re: OT: slang time_t() function? Date: Mon, 21 Jun 1999 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn7mrl7b.ioq.thorfinn@netizen.com.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 491990778 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 929946259 27135 18.75.2.45 (21 Jun 1999 06:24:19 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 21 Jun 1999 06:24:19 GMT Newsgroups: news.software.readers