我正在测试底层离线工人,我想要做的是接收当前的块号,然后做一些计算,就像下面的代码if (get_block / 10 == 0)一样,我得到了一些错误。如何将块编号转换为Integer类型?我的代码 use frame_support::{decl_storage, decl_module, dispatch::DispatchResult, debug};
use frame_system= help
我想将Python datetime对象存储为数据库中的日期编号和时间编号。如何将datetime对象拆分成日期和时间数字?= Today.time() #- time object
DayNumber = Day.whatfuntion() #- internal represtation for date in INTEGERTimeNumber = Time.whatfundtion() #- internal representation for time in IN