gpt4 book ai didi

c++ - 如何在 boost::gregorian::date 中转换 days_ 中的值

转载 作者:行者123 更新时间:2023-11-30 05:19:57 25 4
gpt4 key购买 nike

我可以在 VS 的调试器中看到,boost::gregorian::date 变量包含一个成员 days_2465846.

有没有办法在纸上或 Excel 上将其转换为 dd/mm/yy?

最佳答案

“这几天的确切值_”当然是一个实现细节。

如果你想要一个调试可视化工具,它们是存在的,例如

  • https://svn.boost.org/trac/boost/wiki/DebuggerVisualizers

    Existing visualizers

    All visualizers are available in the svn at https://svn.boost.org/svn/boost/sandbox/boost_docs/subprojects/DebuggerVisualizers. Currently, we support the following Boost types:

    • boost::array, ptr_array, ptr_deque, ptr_list, ptr_map, ptr_multimap, ptr_set, ptr_multiset, ptr_vector
    • boost::bimap
    • boost::interprocess::offset_ptr
    • boost::intrusive::list
    • boost::optional
    • boost::multi_index_container
    • boost::multiprecision
    • boost::shared_ptr
    • boost::posix_time::ptime, boost::posix_time::time_duration (two variants are available)
    • boost::regex
    • boost::variant

    There's also an unfinished visualizer for unordered containers attached to #4209. I'm not sure It isn't clear if it's possible to get it to work.

因为 ptime 聚合了一个 gregorian::date 它已经支持了。

关于c++ - 如何在 boost::gregorian::date 中转换 days_ 中的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40918316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com