答案 0 :(得分:2)
答案 1 :(得分:0)
<field name = "id" type = "string" indexed = "true" stored = "true" required="true"/>
<field name = "name" type = "string" indexed = "true" stored = "true" required="true" multiValued="false"/>
<field name = "gender" type = "string" indexed = "true" stored = "true" required="true" multiValued="false"/>
<field name = "number" type = "string" indexed = "true" stored = "true" required="true" multiValued="true"/>
答案 2 :(得分:0)
docs指出shift
将用于添加偏移量:
now.shift(days=1)
带有replace
,days
,hours
等参数的minutes
方法似乎和shift一样工作,尽管replace也有day
,hour
,minute
等参数,用提供的值替换给定字段中的值。
无论如何,我认为now.shift(hours=-1)
比now.replace
更清晰。