
Hi All I was wondering, is there a way to tell when a mailing list was first created?
Regards SI

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

Thanks very much. Works perfectly.
Regards SI
Sent from Mail for Windows 10
From: Mark Sapiro Sent: Wednesday, October 23, 2019 3:50 PM To: mailman-users@python.org Subject: Re: [Mailman-Users] List first created
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
participants (2)
-
Mark Sapiro
-
Peter Fraser