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
0 answers
Find period in a Time Series
I have the following Time Series:
From the plot I can notice that data are periodic, since the peaks(let's call them valley since I am talking about the one that goes down) have more or less the same distances. Is there a way to find what is the…

Marco
- 1,195
- 3
- 18
- 30
2
votes
2 answers
Java - Set Period
I want to make an analysis of some time barriers and I'm having some doubts about the best approach to define 'Period'.
I'm working with time passed from the start, I mean:
Start - "00:00:00"
Checkpoint 1 - "2:10:02"
End - "03:00:00"
So, what kind…

ruigomes
- 21
- 1
2
votes
3 answers
Join tables on dates when dates are different
So basically I was wondering how I can join two tables on the dates if they are different. The first table is my main tables which includes all my customers that have bought items. The date of purchase is a single point in the past:
Customers
…

not_ur_avg_cookie
- 303
- 4
- 15
2
votes
3 answers
ruby on rails - routes.rb - match file extension when multiple periods exist in filename
I have created a route plus controller for doing dynamic css in ruby on rails as per the instructions here:
http://www.misuse.org/science/2006/09/26/dynamic-css-in-ruby-on-rails/
It took some changing to account for a newer version of ruby on rails,…

Corey O.
- 466
- 9
- 19
2
votes
2 answers
Convert frequency to java.time.Period type
I am getting frequency in form of enum i.e. [ DAILY, WEEKLY, BI-WEEKLY, MONTHLY, BI-MONTHLY, ANNUALLY] and we need to convert that enum to frequency of java.time.Period type then how to convert BI-WEEKLY & BI-MONTHLY into java.time.Period.

Abhinay Kumar
- 101
- 1
- 8
2
votes
1 answer
How do I move a Period to the other side of a comparison?
When it comes to Periods, - is not supposed to be the inverse of +: adding one month to March 31 produces April 30. Subtracting one month from April 30 produces March 30, not March 31.
I've got a filter on database records that involves…
user743382
2
votes
1 answer
Difference Between Two Joda DateTime In Months and Left Over Days
I have a requirement to get the amount of months between two DateTime objects and then get the number of days left over.
Here is how I get the months between:
Months monthsBetween = Months.monthsBetween(dateOfBirth,endDate);
I am unsure how to then…

StuStirling
- 15,601
- 23
- 93
- 150
2
votes
1 answer
Finding period of a sequence
I want to solve this problem:
For a given sequence, a[0], a[1], a[2],..., a[n-1], please find "period" of the sequence.
The period is the minimum integer k (k >= 1) that satisfies a[i] = a[i+k] for all valid i, and also k is a divisor of n.
My…

square1001
- 1,402
- 11
- 26
2
votes
1 answer
Different behavior of PeriodFormatter on different devices (JodaTime)
I'm implementing count down timer for the android app using JodaTime.
Depending of devices the output is different.
DateTime openingDateTime = new DateTime(2018, DateTimeConstants.JUNE, 14, 21, 0, 0, DateTimeZone.forID("Europe/Moscow"));
…

AppiDevo
- 3,195
- 3
- 33
- 51
2
votes
1 answer
Storing date periods in database
I would like to discuss the "best" way to storage date periods in a database. Let's talk about SQL/MySQL, but this question may be for any database. I have the sensation I am doing something wrong for years...
In english, the information I have…

TNT
- 819
- 1
- 8
- 28
2
votes
2 answers
Showing period with days, hours, minutes and seconds
I have the following period 1month 5d 22h 35m 39s, which I want to format as 35d 22h 35m 39s. However when using the following formatter the months are just removed and haven't been added to the days:
PeriodFormatter formatter = new…

Kristoffer
- 1,633
- 3
- 19
- 25
2
votes
2 answers
Determining the time frame given by a pattern
A date can be formatted using a e.g. SimpleDateFormat(formatPattern, locale).
Is it somehow possible to determine the time period (in seconds) that is represented by formatPattern given a date? E.g. if we have
Date date = new…

user462982
- 1,635
- 1
- 16
- 26
2
votes
0 answers
Get period duration in pandas
How to get period duration in pandas? For example, if I have data
PeriodIndex Value
2017Q1 1.156355
2017Q2 0.815639
2017Q3 0.798100
2017Q4 1.027752
How do I get duration of each of the indeces? I could do end_time -…

user2837976
- 45
- 6
2
votes
2 answers
Java parsing json fields into Period
If I have a json response that looks like this:
{
year: 40,
month: 2,
day: 21
}
That represents someone's age. And I have a class to store that:
public class User {
private Period age;
}
How do I parse the individual numbers and…

Richard
- 5,840
- 36
- 123
- 208
2
votes
2 answers
RTCP receiver report sending interval
What is the sending interval of RTCP Receiver Report? In RFC 3550 I was only able to find computation the RTCP Transmission Interval for the server. But as a client I have no idea about members and senders (or do I?). So I'm a little bit confuse how…

Teamol
- 733
- 1
- 14
- 42