Re: GTK2::TreeView column with sortable date column
- From: Dave M <dave nerd gmail com>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Cc: mmcginn rogers com
- Subject: Re: GTK2::TreeView column with sortable date column
- Date: Tue, 9 Feb 2010 20:36:52 -0600
On Tue, Feb 9, 2010 at 8:16 PM, MICHAEL MCGINN <mmcginn rogers com> wrote:
I've implemented a TreeView which works well. One of the many columns is a
standard format alphanumeric date column.
I'm looking for advice on how to sort a TreeView column that contains dates;
where the date is formatted (ex: Tue Feb 9, 8:58pm 2010) in a fairly typical
alphanumeric string.
An alpha sort is obviously not correct when looking at date information.
Does anyone know of a way to implement an ascending/descending "date" sort
of a TreeView column which contains dates?
I know I can easily convert to a completely numeric date but I'd rather not.
Not sure if this will help or not... but I had to do something similar
recently. I did away with trying to sort by the string itself, and
sorted instead by timestamp (-M) in an orcish maneuver. That might be
something you can do instead.
Dave M
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]