How to use ft_datetime in content plugins?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Alessandro
Junior Member
Junior Member
Posts: 2
Joined: 2005-02-05, 23:42 UTC

How to use ft_datetime in content plugins?

Post by *Alessandro »

Hi,

I would like to export a ft_datetime field instead of a pair of ft_date+ft_time fields for better sorting in TC.
But there is no tdatetimeformat struct.

Is it possible at all to export a ft_datetime field?

Thanks,
Alessandro Portale
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Alessandro
RTFM :) ft_datetime rerturned not as structure. Look at ContentGetSupportedField() definition:
ft_datetime - A timestamp of type FILETIME, as returned e.g. by FindFirstFile(). It is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601. The time MUST be relative to universal time (Greenwich mean time) as returned by the file system, not local time!
Alessandro
Junior Member
Junior Member
Posts: 2
Joined: 2005-02-05, 23:42 UTC

Post by *Alessandro »

VadiMGP wrote:2Alessandro
RTFM :) ft_datetime rerturned not as structure. Look at ContentGetSupportedField() definition:
ft_datetime - A timestamp of type FILETIME, as returned e.g. by FindFirstFile(). It is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601. The time MUST be relative to universal time (Greenwich mean time) as returned by the file system, not local time!
Well the first time I read id, I didn't to learn from that manual paragraph that a datetime cannot be returned. :wink:

But apart from that, I have now the opinion that it is better to return separate fields for date and time, anyway. The user can put them together in the custom channel configuration in a way he/she likes. That is much more flexible.

Content plugins are so cool!
I wished "Column handler" shell extensions would be so flexible.


Alessandro Portale
Post Reply