问:小时数 [英] Q: Hours

查看:70
本文介绍了问:小时数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我希望有人可以帮我解决以下问题。


我有一个DataView,其中包含一个包含时间的列。


我想创建一个数组,它将在一小时内存储时间。

例如,12之间的所有时间:00和13:00将被放置在阵列的一个

索引中,所有从13:00到14:00的通话将被放置在

下。


有人可以给我一些代码吗?


提前谢谢


Geoff

解决方案

Geoff,

出于好奇,为什么要搬到

microsoft.public.dotnet.languages.csharp新闻组?

你真的想在csharp中使用这个部分吗?或者你喜欢VB.NET如

rest has是吗?


你能更好地定义之间的所有时间吗?手段?你是否b $ b意味着所有属于那个时间范围内的DataRows或者是那个在该范围内的
(行外)?

只是好奇

Jay


" Geoff Jones" < GE *** @ NODAMNSPAM.com>在消息中写道

news:40 ********************* @ news.dial.pipex.com ..。



我希望有人可以帮我解决以下问题。

我有一个DataView,其中包含一个包含Time的列。 br />
我想创建一个数组,将时间存储在一个
小时内。例如,12点到13点之间的所有时间都将放在数组的一个索引中,13:00到14:00之间的所有通话都将放在
下一个。

任何人都可以给我一些代码吗?

提前致谢

Geoff



你好嗨


VB暂时搁置。我正在努力研究一些C#(哦,快乐!)

LOL


对不起,我没有把原帖非常清楚。假设我有一个

日期列表如下:


15:02,09:23,14:34,17:02,15:45,等等


这些将按顺序排列,即每个人都有自己的唯一标识符

的顺序,例如15:02是1,09:23是2等等。


我希望能够创建一个阵列,例如,它有:


索引0包含列表中所有项目的时间从01:00到02:00(但

不包括)

索引1有列表中的所有项目的时间从02:00到03:00

(但不包括)





有兴趣听取您的想法


Geoff


Jay B. Harlow [MVP - Outlook]" < JA ************ @ msn.com>在消息中写道

新闻:eB ************** @ TK2MSFTNGP09.phx.gbl ...

Geoff,出于好奇,你为什么要搬到
microsoft.public.dotnet.languages.csharp新闻组?

你真的想在csharp中使用这个部分吗?或者你想要VB.NET喜欢
休息了吗?

你能更好地定义之间的所有时间吗?手段?你是否意味着所有落在那个时间范围内的数据行或者在那个范围内(行外)的所有DataRows?

只是好奇
周杰伦

杰夫琼斯 < GE *** @ NODAMNSPAM.com>在消息中写道
新闻:40 ********************* @ news.dial.pipex.com ..。



我希望有人可以帮我解决以下问题。

我有一个DataView,其中包含一个包含Time的列。

我想创建一个数组,它将时间存储在一个


小时。

例如,所有在12:00和13:00之间的时间将放在数组的一个索引中,从13:00到14:00的所有调用都将放在


中。

任何人都可以给我一些代码吗?

提前致谢

Geoff




Geoff Jones写道:



我希望有人可以提供帮助我有以下问题。

我有一个包含列whic的DataView h包含一个时间。

我想创建一个数组,它将在一小时内存储时间。
例如,将在12:00和13:00之间的所有时间放置在阵列的一个索引中,从13:00到14:00的所有通话都将放在
下。

任何人都可以给我一些代码来执行此操作?




这是世界上最简单的事情。


阅读一两篇论文,你会得到它。


Hi

I''m hoping that somebody can help me with the following question.

I have a DataView which contains a column which contains a Time.

I would like to create an array which will store the times within one hour.
For example, all the times between 12:00 and 13:00 will be placed in one
index of the array, all the calls from 13:00 to 14:00 will be placed in the
next.

Can anybody give me some code to do this?

Thanks in advance

Geoff

解决方案

Geoff,
Just out of curiosity, why have you moved to the
microsoft.public.dotnet.languages.csharp newsgroup?

Do you really want this part in csharp or would you like VB.NET like the
rest has been?

Can you define a little better what "all the times between" means? Do you
mean all the DataRows that fall within that time frame or ever minute
(outside of the rows) that falls within that range?

Just curious
Jay

"Geoff Jones" <ge***@NODAMNSPAM.com> wrote in message
news:40*********************@news.dial.pipex.com.. .

Hi

I''m hoping that somebody can help me with the following question.

I have a DataView which contains a column which contains a Time.

I would like to create an array which will store the times within one hour. For example, all the times between 12:00 and 13:00 will be placed in one
index of the array, all the calls from 13:00 to 14:00 will be placed in the next.

Can anybody give me some code to do this?

Thanks in advance

Geoff



Hi Jay

VB has been put on hold for now. I''m trying to work on some C# now (oh joy!)
LOL

Sorry I didn''t make the original post very clear. Suppose I have a list of
dates as follows:

15:02, 09:23, 14:34, 17:02, 15:45, etc.

These would be in order i.e. each one would have its own unique identifier
in terms of order e.g. 15:02 is 1, 09:23 is 2 etc.

I''d like to be able to create an array that would, for example, have:

index 0 having all the items in the list with times from 01:00 to 02:00 (but
not including)
index 1 having all the items in the list with times from from 02:00 to 03:00
(but not including)

etc.

Interested in hearing your thoughts

Geoff

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:eB**************@TK2MSFTNGP09.phx.gbl...

Geoff,
Just out of curiosity, why have you moved to the
microsoft.public.dotnet.languages.csharp newsgroup?

Do you really want this part in csharp or would you like VB.NET like the
rest has been?

Can you define a little better what "all the times between" means? Do you
mean all the DataRows that fall within that time frame or ever minute
(outside of the rows) that falls within that range?

Just curious
Jay

"Geoff Jones" <ge***@NODAMNSPAM.com> wrote in message
news:40*********************@news.dial.pipex.com.. .

Hi

I''m hoping that somebody can help me with the following question.

I have a DataView which contains a column which contains a Time.

I would like to create an array which will store the times within one


hour.

For example, all the times between 12:00 and 13:00 will be placed in one
index of the array, all the calls from 13:00 to 14:00 will be placed in


the

next.

Can anybody give me some code to do this?

Thanks in advance

Geoff




Geoff Jones wrote:

Hi

I''m hoping that somebody can help me with the following question.

I have a DataView which contains a column which contains a Time.

I would like to create an array which will store the times within one hour.
For example, all the times between 12:00 and 13:00 will be placed in one
index of the array, all the calls from 13:00 to 14:00 will be placed in the
next.

Can anybody give me some code to do this?



That is the simplest thing in the world.

Read an article or two and you''ll have it.


这篇关于问:小时数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆