Tags:
create new tag
view all tags

How to get the date in the format of META:TOPICINFO?

I noticed my files have a date format which I am not familiar with. I have tried to find any information but had no success at all frown

Here is the header of my file (.txt):

%META:TOPICINFO{author="AndreDantas" date="1060028639" format="1.0" version="1.7"}%

Is there any chance of "translating" this date in something usual? And of course, is there any chance of "translating" regular date format to this one? If so, I will be able to make my WebChangesInMyWebs possible by the following search:

%SEARCH{ "META:TOPICINFO.*date=\"106002..."" web="Head Proj Main" regex="on" order="modified" reverse="on" }%

Environment

TWiki version: 01 Feb 2003
TWiki plugins: a lot of them... but no matters wink
Server OS: Linux
Web server: Apache
Perl version: OK
Client OS: Windows
Web Browser: Internet Explorer

-- AndreDantas - 14 Aug 2003

Answer

The date format is the number of seconds since (some date) where the date is 1. Jan 1980 or something. What the actual zero-date is, is irrelevant for TWiki to work. I'm not familiar with ways to convert to and from this seconds-format date, but I'm sure there are ways.

-- TorbenGB - 15 Aug 2003

It is the number of seconds since 01 Jan 1970, which is the start of Unix. THis format is the internal date format of unix systems, often called "time" (as opposed to "dates", which are expressed as days, months, years...). Most programming languages have facilities to handle it. In perl, look at the gmtime and related functions.

-- ColasNahaboo - 15 Aug 2003

Thanks for the answers.
I will check what I can do from this gmtime and will let you all know.

-- AndreDantas - 19 Aug 2003

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2004-01-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.