[Mailman-Users] List first created
Mark Sapiro
mark at msapiro.net
Wed Oct 23 16:49:30 EDT 2019
On 10/23/19 11:56 AM, Peter Fraser wrote:
> Hi All
> I was wondering, is there a way to tell when a mailing list was first created?
Both Mailman 2.1 and Mailman 3 lists have a created_at attribute.
In Mailman 2.1 this is a floating point number of seconds since the
epoch. There is a withlist script at
<https://www.msapiro.net/scripts/created.py> (mirrored at
<https://www.msapiro.net/scripts/created.py>) to display this timestamp
in human readable form.
In Mailman 3 this is a datetime.datetime object. you can display it in
mailman shell, e.g.,
$ mailman shell -l test.example.net
Welcome to the GNU Mailman shell
The variable 'm' is the test.example.net mailing list
>>> m.created_at
datetime.datetime(2018, 8, 4, 18, 12, 19, 331435)
>>>
in this case, the list was created on 2018-04-18 at 18:12:19.331435
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list