Article View: news.software.readers
Article #49387OT: slang time_t() function?
From: Thorfinn
Date: Mon, 21 Jun 1999 00:00
Date: Mon, 21 Jun 1999 00:00
42 lines
2710 bytes
2710 bytes
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
assume there would be interest from here (via slrn) and comp.editors
(via jed)... are there any other applications out there that use
slang, and have existing newsgroups?
Anyway... back what I was going to ask:
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...
I would like a function to return the current time as a time_t value,
as per the same type of values returned in the struct members
st_mtime, st_atime, st_ctime from lstat_file() and similar.
Currently, I'm doing an evil hack, and fishing out the latest atime
value from lstat_file(make_home_filename(".")) ... but that's an ugly
hack which isn't very accurate.
I don't *need* that kind of accuracy (it's only for my
X-Countdown-To-Y2K: header, which is kinda spurious anyway...), but
the correct thing to do is to retrieve the time(2) value.
I can write a patch myself and submit it, if there isn't one currently
available.
Later,
Thorfinn
--
<a href = "http://www.netizen.com.au/"> thorfinn@netizen.com.au </a>
If it [bit of number theory] was UI for you, seek help now. Write a
perl compiler in FORTRAN, or a FORTRAN compiler in perl. Read
contemporary French philosophy. Write a stupid SF novel.
-- Anatoly Vorobey in the scary.devil.monastery
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn7mrl7b.ioq.thorfinn@netizen.com.au> Subject: OT: slang time_t() function? Date: Mon, 21 Jun 1999 00:00:00 +0000 From: thorfinn@netizen.com.au (Thorfinn) 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: 491985073 Cache-Post-Path: centauri.unico.com.au!unknown@venus.dev.unico.com.au X-WhoIsNetizen: See http://www.netizen.com.au/ about Netizen. X-Complaints-To: abuse@connect.com.au X-Trace: perki.connect.com.au 929944813 8664 202.21.8.159 (21 Jun 1999 06:00:13 GMT) Organization: Unico Computer Systems Pty Ltd X-Cache: nntpcache 2.3.3b4 (see http://www.nntpcache.org/) X-Countdown-To-Y2K: 27 weeks 4 days 7 hours 13 minutes 18 seconds to go User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: thorfinn@netizen.com.au NNTP-Posting-Date: 21 Jun 1999 06:00:13 GMT Newsgroups: news.software.readers X-Religion: linux slrn mutt vim