将时间段插入一系列时间段

编程入门 行业动态 更新时间:2024-10-21 09:30:45
本文介绍了将时间段插入一系列时间段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

假设我们有一系列时间段...... 从6:00 AM到7:30 7:30 AM到8 :00 AM 8:00 AM至8:30 8:30 AM至10:00 和我想要插入一段时间,请说 上午7:45至8:15 这样...... 。 1.序列的开始时间保持不变(早上6:00) 2.序列的结束时间保持不变(上午10:00) 3.总持续时间保持不变(4小时) 4.插入期间的开始和结束时间保持不变。 使用上面的例子,我希望...... 6:00 AM到7:30 7 :上午30点至早上7:45 上午7:45至8:15 8:15 AM至8:30 8:30 AM至10: 00AM Thx

Suppose we have a sequence of time periods... 6:00AM to 7:30AM 7:30AM to 8:00AM 8:00AM to 8:30AM 8:30AM to 10:00AM and I want to insert a period, say 7:45AM to 8:15AM such that... 1. The start time of the sequence remains the same (6:00AM) 2. The finish time of the sequence remains the same (10:00AM) 3. The total duration remains the same (4 hours) 4. the start and finish time of the inserted period remains the same. Using the example above I would expect... 6:00AM to 7:30AM 7:30AM to 7:45AM 7:45AM to 8:15AM 8:15AM to 8:30AM 8:30AM to 10:00AM Thx

推荐答案

看看时间段李brary for .NET [ ^ ] ,CP上最好的文章之一。 学习它的代码肯定会为你提供有关你自己要求的线索。 Have a look at Time Period Library for .NET[^], one of the best articles on CP. Studying its code will for sure give you clues about your own requirement.

更多推荐

将时间段插入一系列时间段

本文发布于:2023-06-11 03:50:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/626144.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间段   系列

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!