Re: Decode unixtime
On Wed, 27 Jan 2010 14:54:21 -0500, Celejar wrote: > So IIUC, the first link indicates that non-free is indeed still part of > Debian, at least in some sense. I am not an official spokesman for Debian, but it would appear so, yes. This was an official vote, it passed by a large margin, and as far as I am able to determine, the issue has not been voted on since. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Wed, 27 Jan 2010 09:19:19 -0500 (EST) Stephen Powell wrote: > On Wed, 27 Jan 2010 08:53:18 -0500, Celejar wrote: > > What I meant was that I see no definitive answer to the general > > semantic question of whether stuff in the non-free section is 'in > > Debian' or not. > > Excuse me for butting in here, gentlemen, but perhaps these links > will help clarify things: > > http://www.debian.org/vote/2004/vote_002 > http://www.debian.org/vote/2006/vote_001.en.html > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org So IIUC, the first link indicates that non-free is indeed still part of Debian, at least in some sense. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Wed, 27 Jan 2010 08:53:18 -0500, Celejar wrote: > What I meant was that I see no definitive answer to the general > semantic question of whether stuff in the non-free section is 'in > Debian' or not. Excuse me for butting in here, gentlemen, but perhaps these links will help clarify things: http://www.debian.org/vote/2004/vote_002 http://www.debian.org/vote/2006/vote_001.en.html -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Wed, 27 Jan 2010 22:05:02 +0900 Osamu Aoki wrote: > Hi, > > On Tue, Jan 26, 2010 at 07:39:09PM -0500, Celejar wrote: > > On Fri, 15 Jan 2010 16:18:31 -0500 > > Chris Jones wrote: > > > On Fri, Jan 15, 2010 at 09:29:04AM EST, Celejar wrote: > > > > On Fri, 15 Jan 2010 03:56:11 -0500 > > > > Chris Jones wrote: > > > [..] > > bash info still isn't in Debian, even as non-free: > > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427804 > > > > > > This is Debian, after all! > > > > > > I was under the impression that non-free was not Debian? > > > > A quick google doesn't yield a definitive answer to the question. > > The answer is in most obvious place. > /usr/share/doc/bash/changelog.Debian.gz ... > Let's see http://bugs.debian.org/357260 > bash-doc: GFDL documentation with cover texts > > This explains. What I meant was that I see no definitive answer to the general semantic question of whether stuff in the non-free section is 'in Debian' or not. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
Hi, On Tue, Jan 26, 2010 at 07:39:09PM -0500, Celejar wrote: > On Fri, 15 Jan 2010 16:18:31 -0500 > Chris Jones wrote: > > On Fri, Jan 15, 2010 at 09:29:04AM EST, Celejar wrote: > > > On Fri, 15 Jan 2010 03:56:11 -0500 > > > Chris Jones wrote: > > [..] > bash info still isn't in Debian, even as non-free: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427804 > > > > This is Debian, after all! > > > > I was under the impression that non-free was not Debian? > > A quick google doesn't yield a definitive answer to the question. The answer is in most obvious place. /usr/share/doc/bash/changelog.Debian.gz bash (3.1dfsg-6) unstable; urgency=low * Remove the texinfo documentation from the package. Closes: #357260. * Remove the FAQ from the package. -- Matthias Klose Thu, 12 Oct 2006 22:35:46 +0200 Let's see http://bugs.debian.org/357260 bash-doc: GFDL documentation with cover texts This explains. Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Fri, 15 Jan 2010 16:18:31 -0500 Chris Jones wrote: > On Fri, Jan 15, 2010 at 09:29:04AM EST, Celejar wrote: > > On Fri, 15 Jan 2010 03:56:11 -0500 > > Chris Jones wrote: > > > [..] > > > it's generally available in non-free - no need to do anything > > manually. > > Maybe this has changed, but on lenny, I vaguely remember installing the > bash and grep info pages--among a few more exotic others, from gnu.org > because I couldn't find them anywhere in the repos, non-free included. bash info still isn't in Debian, even as non-free: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427804 > > This is Debian, after all! > > I was under the impression that non-free was not Debian? A quick google doesn't yield a definitive answer to the question. I am aware that in one sense, 'official' Debian doesn't include non-free, but IIUC, the categorization of packages into the sections 'main', 'contrib' and 'non-free' is an official one, and that Debian repos do generally include the non-free section. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On 20100115_051059, T o n g wrote: > Which tool can help me decode the Unix time? E.g., strings like > 1257624539, 1258162046, 1257623988, 1257709563, etc. [...] Alex Samad wrote: > I believe squid logs like that ! That's correct. The squid FAQ also gives a perl snippet to post-process the logs, turning the number into a human readable date/time string. Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Re: Decode unixtime
> Using Lenny? -- the '-I' will be gone soon. It is not even in Squeeze's > man page now. Yes lenny, it's disappeared from the man page already, and in fact it's not in etch's man page either. I wasn't aware of this bug but it has been reported 4 years ago! http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=354799 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
Tong writes: > the '-I' will be gone soon. It is not even in Squeeze's man page now. Still works in version 8.4 in Sid, though. -- John Hasler -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Sat, 16 Jan 2010 21:31:19 +, Clive Standbridge wrote: > How about > date -I > date -Iseconds > > Sortable, readable, parseable and standard to boot. Using Lenny? -- the '-I' will be gone soon. It is not even in Squeeze's man page now. -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Fri, Jan 15, 2010 at 11:32:30PM EST, Brian Ryans wrote: > Quoting Chris Jones on 2010-01-15 02:56:11: > > behaves a bit more like a text-mode web browser. > pinfo's maintainer would agree with you. Quoting 'apt-cache show > pinfo': > Description: An alternative info-file viewer pinfo is an viewer for > Info documents, which is based on ncurses. The key-commands are in > the style of lynx. > If it weren't for this thread, I'd not have known about pinfo, I'll > give it a whirl. > PS. Chris, if you get CCd in this, I apologize. I've acquired muscle > memory to press 'r' to reply, instead of 'l' for list-reply. Actually, I have a procmail recipe that does away with duplicate messages, so I wouldn't have noticed. Only problem I've had with pinfo is that I wasn't able to make work with soft links - i.e. you have a two versions of gcc and gcc is a link to the most current, pinfo burps a 'file not found' or something message. But I didn't really research it much, I had too many problems manually editing the info directory. Otherwise, with its fairly 'intuitive' navigation model, I think it makes reading the doc fo an extended period of time somewhat easier than either info or man. Enjoy. CJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Re: Decode unixtime
Quoting Clive Standbridge on 2010-01-16 15:31:19: > How about > date -I > date -Iseconds > > Sortable, readable, parseable and standard to boot. Wow, thanks for that Clive. Easier to remember, too. I just tried it in a shell one-liner, and I used a bit less logic to parse it than other methods I've tried in the past. The below is for the benefit of those who are just joining this thread: For programs that expect strftime(3) format [1] this is equivalent to -Iseconds (which isn't even documented in date(1)'s manpage in Lenny) date +'%FT%T%z' # the part in single quotes is passed straight to # strftime(3) if I believe, someone correct me if # I'm wrong, please. A simple '%F' is equivalent to 'date -I'. [1] such as Irssi's or xchat's log format specifiers, various syslogd implementations (IIRC)... -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Re: Decode unixtime
> > I suggest that you change the way you get the numbers so that they > > are > > both human readable and parsable by simple code. I like date > > +%Y%m%d_%H%M%S > > +%F_%T is what I use when spaces aren't desirable in dates. See my > quoting line for a slightly modified example of it. From my > experience, > it's equally able to be parsed by software, and (IMO) easier to parse > by > wetware. How about date -I date -Iseconds Sortable, readable, parseable and standard to boot. > [#include usDateFormatRant.txt] Hear hear. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
Quoting Chris Jones on 2010-01-15 02:56:11: > behaves a bit more like a text-mode web browser. pinfo's maintainer would agree with you. Quoting 'apt-cache show pinfo': Description: An alternative info-file viewer pinfo is an viewer for Info documents, which is based on ncurses. The key-commands are in the style of lynx. If it weren't for this thread, I'd not have known about pinfo, I'll give it a whirl. PS. Chris, if you get CCd in this, I apologize. I've acquired muscle memory to press 'r' to reply, instead of 'l' for list-reply. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Decode unixtime
Quoting Paul E Condon on 2010-01-15 01:09:33: > I suggest that you change the way you get the numbers so that they are > both human readable and parsable by simple code. I like date > +%Y%m%d_%H%M%S +%F_%T is what I use when spaces aren't desirable in dates. See my quoting line for a slightly modified example of it. From my experience, it's equally able to be parsed by software, and (IMO) easier to parse by wetware. [#include usDateFormatRant.txt] -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Decode unixtime
On Fri, Jan 15, 2010 at 09:29:04AM EST, Celejar wrote: > On Fri, 15 Jan 2010 03:56:11 -0500 > Chris Jones wrote: > [..] > it's generally available in non-free - no need to do anything > manually. Maybe this has changed, but on lenny, I vaguely remember installing the bash and grep info pages--among a few more exotic others, from gnu.org because I couldn't find them anywhere in the repos, non-free included. > This is Debian, after all! I was under the impression that non-free was not Debian? CJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Fri, 15 Jan 2010 03:56:11 -0500 Chris Jones wrote: ... > Besides, I hear that due to licensing restrictions, some of the info > pages are not available from the debian repos. As a result, if you don't > mind tainting your debian system, you need to download them from the GNU > website and install them manually, which is not always straightforward. I) IIUC, the coreutils info documentation is included with the regular coreutils package. II) The licensing restrictions on other GNU documentation sometimes prevents it from entering main, but IIUC, it's generally available in non-free - no need to do anything manually. This is Debian, after all! Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Fri, Jan 15, 2010 at 02:46:07AM EST, Teemu Likonen wrote: > On 2010-01-15 05:20 (UTC), Chris Jackson wrote: > > > It's not well documented, but: date -d, with an '@' before it: > > > > chr...@hercule$ date -d '@1257624539' > > Sat Nov 7 20:08:59 GMT 2009 > > It's documented quite well in info pages, though: > > $ info coreutils "date inv" > $ info coreutils seconds > > (Or from Emacs.) > > But I guess nobody - except Emacs users - read info pages these days, And they don't read the man pages either, since the date manual states: | The full documentation for date is maintained as a Texinfo manual. If the info | and date programs are properly installed at your site, the command | |info date | | should give you access to the complete manual. I don't use Emacs, but for anything longer than a couple of screenfuls, I find the Texinfo manuals have the edge over the man pages, although it takes a while to get used to finding your way around. Besides, I hear that due to licensing restrictions, some of the info pages are not available from the debian repos. As a result, if you don't mind tainting your debian system, you need to download them from the GNU website and install them manually, which is not always straightforward. I don't know if it still ships with more current versions of debian but there is a nice replacement to the 'info' browser named 'pinfo' that provides color highlighting and more user-friendly navigation via hjkl + ... hmm, more user-friendly for vimmers, that is.. behaves a bit more like a text-mode web browser. > so in practice it's not very well documented. :-) Well, that's why we have mailing lists.. so we can document the doc :-) CJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On 2010-01-15 05:20 (UTC), Chris Jackson wrote: > It's not well documented, but: date -d, with an '@' before it: > > chr...@hercule$ date -d '@1257624539' > Sat Nov 7 20:08:59 GMT 2009 It's documented quite well in info pages, though: $ info coreutils "date inv" $ info coreutils seconds (Or from Emacs.) But I guess nobody - except Emacs users - read info pages these days, so in practice it's not very well documented. :-) -- Feel free to Cc me your replies if you want to make sure I'll notice them. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
Have you tried the function "ctime"? Alex Samad wrote: > On Fri, Jan 15, 2010 at 12:09:33AM -0700, Paul E Condon wrote: > >> On 20100115_051059, T o n g wrote: >> >>> Hi, >>> >>> Which tool can help me decode the Unix time? E.g., strings like >>> 1257624539, 1258162046, 1257623988, 1257709563, etc. they are about 68 >>> days ago. >>> >>> Thanks >>> >>> >> date contains the standard time/date handling code, but it is >> inconvenient to give it a ten digit Unix time number. Where are you >> getting these numbers? I suggest that you change the way you get the >> > > I believe squid logs like that ! > > >> numbers so that they are both human readable and parsable by simple >> code. I like date +%Y%m%d_%H%M%S >> >> > [snip] > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
On Fri, Jan 15, 2010 at 12:09:33AM -0700, Paul E Condon wrote: > On 20100115_051059, T o n g wrote: > > Hi, > > > > Which tool can help me decode the Unix time? E.g., strings like > > 1257624539, 1258162046, 1257623988, 1257709563, etc. they are about 68 > > days ago. > > > > Thanks > > > > date contains the standard time/date handling code, but it is > inconvenient to give it a ten digit Unix time number. Where are you > getting these numbers? I suggest that you change the way you get the I believe squid logs like that ! > numbers so that they are both human readable and parsable by simple > code. I like date +%Y%m%d_%H%M%S > [snip] signature.asc Description: Digital signature
Re: Decode unixtime
On 20100115_051059, T o n g wrote: > Hi, > > Which tool can help me decode the Unix time? E.g., strings like > 1257624539, 1258162046, 1257623988, 1257709563, etc. they are about 68 > days ago. > > Thanks > date contains the standard time/date handling code, but it is inconvenient to give it a ten digit Unix time number. Where are you getting these numbers? I suggest that you change the way you get the numbers so that they are both human readable and parsable by simple code. I like date +%Y%m%d_%H%M%S This gives a string of 15 bytes that sorts to the same order as the UNIX time number and is visually understandable with only a little effort. (It has no embedded spaces and is almost as compact as 10 digit Unix time.) If the time of interest is the modification time of file, foo, the command is date +%Y%m%d_%H%M%S -r foo For the mod time of foo in the UTC time zone use date +%Y%m%d_%H%M%S -ur foo See, man date -- Paul E Condon pecon...@mesanetworks.net -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Decode unixtime
T o n g wrote: > Hi, > > Which tool can help me decode the Unix time? E.g., strings like > 1257624539, 1258162046, 1257623988, 1257709563, etc. they are about 68 > days ago. > > Thanks > It's not well documented, but: date -d, with an '@' before it: chr...@hercule$ date -d '@1257624539' Sat Nov 7 20:08:59 GMT 2009 -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org