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
How to use ft_datetime in content plugins?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 2
- Joined: 2005-02-05, 23:42 UTC
2Alessandro
RTFM
ft_datetime rerturned not as structure. Look at ContentGetSupportedField() definition:
RTFM

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!
-
- Junior Member
- Posts: 2
- Joined: 2005-02-05, 23:42 UTC
Well the first time I read id, I didn't to learn from that manual paragraph that a datetime cannot be returned.VadiMGP wrote:2Alessandro
RTFMft_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!

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