date DND

Matthias Clasen maclas at
Sat Jul 19 22:12:10 EEST 2003


I'm currently working on adding dnd to the GtkCalendar widget (see I've looked around
for prior art, but couldn't find any, therefore I invented the following

type: application/x-date
format: 16
data[0]: 1-based day number (ie between 1 and 31)
data[1]: 0-based month number (ie between 0 and 11)
data[2]: year

The seemingly strange mixture of 1-based and 0-based numbering has been
inherited from GtkCalendar which has inerited it from time_t. The format
is 16 to give enough room for the year.

What I'd like to ask this list is:

1) Are there existing data formats for transferring dates via X
properties ? If yes, should we agree on an existing one, rather than
inventing a new one...

2) Is the proposed format good enough, or should we optionally include
time information ?


PS There seems to be some mailing list configuration issue, as I
currently can't reach this list as xdg-list at, only as 
xdg-list at

More information about the xdg mailing list