拆分矢量 [英] Split Vector
本文介绍了拆分矢量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将日期和时间组合在一个向量中,我想分割日期和时间并将它们再次存储在向量中进行比较。
以下是日期时间向量的格式
例如: -
25 / Jul / 2011:00:00:32
解决方案
为什么不保持你现在拥有它的日期和时间,并在比较功能中进行任何拆分吗?
看起来你不需要第二个向量。
感谢您的回复:)
我可以在比较功能中做到这一点,但即便如此我需要分割矢量日期时间。我的要求是我需要查看特定日期的时间...使其简短的日期是不变的,但我需要看到时间变化所以我想分开它们。
< blockquote>如果日期是恒定的,那么同一天的所有时间都不是吗?
I have date and time combined in a vector and i want to split the date and time and store them in a vector again for comparision.
The below is the format of datetime vector
For example :-
25/Jul/2011:00:00:32
解决方案
Why not just keep the date and time as you have it now and do any splittng inside the comparison function?
It doesn''t look like you need a second vector.
Hi,
Thanks for the reply :)
I can do that in comparision function but even for that i need to split the vector datetime. My requirement is i need to see the time for a particular day... to make it brief date is constant but i need to see the time which changes so for this i want to split them.
If the date is constant, aren''t all the times for the same day?
这篇关于拆分矢量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文