A period of time is an interval, a span of time. You can also use it for questions related to the actual punctuation mark.
Questions tagged [period]
508 questions
2
votes
3 answers
Need help with a SQL query selecting date ranges from a table of period quarters
I have a table called Periods that looks like this
PeriodID | PeriodYear | PeriodQuarter
7 | 2009 | 1
8 | 2009 | 2
9 | 2009 | 3
10 | 2009 | 4
11 | 2010 | 1
12 | 2010 | 2
Each row in the table represents 1 of the 4 quarters of the year (like…

Saajid Ismail
- 8,029
- 11
- 48
- 56
2
votes
4 answers
Inconsistent intervals with System.Windows.Forms.Timer
Please be kind, I'm just learning C# and inheriting this application from a former-employee is my first C# project.
I am observing inconsistent and slow periods with System.Windows.Forms.Timer. The application is written in C# with MS Visual…

ErikB
- 21
- 1
- 2
2
votes
3 answers
Period.between only subtracting days
The variable dateSubtract comes out to 16 but I want to find the total number of days in between the 2 days, which should be 165. How can I do this WITHOUT JODA TIME?
String date = "06/17/2014";
DateTimeFormatter formatter =…

user2007843
- 609
- 1
- 12
- 30
2
votes
3 answers
Division a column in period and print min max for each in awk
I have a data file which content two columns. One of them have periodic variation of whom the max and min are different in each period :
a 3
b 4
c 5
d 4
e 3
f 2
g 1
h 2
i 3
j 4
k 5
l 6
m 5
n …

user3515154
- 37
- 1
- 5
2
votes
1 answer
PHP Regex Remove Periods That Appear Next to Each Other
I am working with a body of text that sometimes includes periods that occur right next to each other. Example:
Today is a nice day....."It is almost time for lunch"..
How can I turn that into this:
Today is a nice day. "It is almost time for…

Alec
- 99
- 2
- 10
2
votes
1 answer
Periodic intervals
I have the following structures in my code:
class Interval {
public $start, $end;
}
class Period {
public $interval, $period;
}
They represent a simple and repeating interval, respectively. For example:
**** // This is a simple interval…

NikitaObukhov
- 193
- 1
- 2
- 10
2
votes
3 answers
Strange behavior with Joda-Time in period calculation
About the February month, there is a strange behavior that you can see in the incorrect results with Joda-Time, you can look down here:
DateTime date1 = new DateTime(2013, 4, 28, 0, 0, 0, 0);
DateTime date1PlusNineMonths = new DateTime(2014, 1, 28,…

Akyo
- 139
- 1
- 12
2
votes
1 answer
Which is better jodatime or prettytime
for those who have worked with time handling libraries, I want to ask wich is best (jodatime or prettytime).
I'm working on an application that requieres mainly, calculating how many days (or months or minutes according to the lenght of the period)…

Hugo Allexis Cardona
- 1,382
- 19
- 25
2
votes
1 answer
Java - Stop executequery() after some period
I have an SQL query executed by:
ResultSet resultSet = preparedStatement.executeQuery();
while( resultSet.next() ){
// do some stuff
}
Is there a way to stop the execution and do some code after let's say 2 minutes of execution?
Thanks

daiquiri33
- 65
- 2
- 7
2
votes
3 answers
Joda-Time, daylight savings calculation, timezone independent tests
We use fixed time periods in the application. When the user adds a new period, it should be by default from 6:00 AM to 6:00 AM the next day.
Normally, it's 24 hours, but there is one issue : when the daylight saving change is performed, the length…

StKiller
- 7,631
- 10
- 43
- 56
2
votes
1 answer
Caculating periods of 6 months using PHP and MySQL
Good evening.
How can I calculate periods of 6 months (semesters or a two terms years)?
Explaining:
There is a spreadsheet, which I will convert to a MySQL DB, that has the following, relevant, columns Course, Begin and Duration. Course is a string…

msmafra
- 1,704
- 3
- 21
- 34
2
votes
2 answers
exploding a file name to separate the name and extension won't work in PHP?
I'm building a class that returns an string that will include files in a folder automatically, kinda like a loader for an HTML file.
Here's the method that will be called:
function build_external_file_include($_dir){
$_files = scandir($_dir);
…

Philll_t
- 4,267
- 5
- 45
- 59
2
votes
3 answers
Average sleep interval in PHP
I need to get average sleep interval from following data:
22:00-06:00
00:00-08:00
02:00-10:00
=> expected: 00:00-08:00
22:00-06:00
00:00-08:00
02:00-10:00
04:00-08:00
=> expected: 01:00-08:00
The problem is oscillation around midnight, where…

Tomas Votruba
- 23,240
- 9
- 79
- 115
2
votes
3 answers
Regular Expression Perl period quotation
After trying N+1 times with regex in Perl:
I have the following problem:
I need to retrieve this:
232310..1.3 3213 2.4 "$250 For My jacket" (2012)
I am trying to retrieve it via:
if (…

Majic Johnson
- 341
- 3
- 15
1
vote
1 answer
Importing a module into python with a period in the path
I'm having trouble importing numpy into my script because of some path-name issues.
I'm running my script with python 2.7, rather than the default 2.6 on my server because I need some of the updates in the Collections module. I cant seem to import…

FabbyRob
- 31
- 1
- 3