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
0
votes
1 answer
Joda-Time : Date calculation
I would like to calculate precisely the months between two dates to achieve this I do something like :
DateTimeZone ZONE = DateTimeZone.forID("Europe/London");
String DATE_FORMAT = "dd/MM/yyyy";
DateTimeFormatter…

Akyo
- 139
- 1
- 12
0
votes
3 answers
Scheduling events, and having events cross midnight
I'm building a tv series scheduling app in Ruby on Rails which performs certain actions based on what's currently on tv. Users can create a series, which has a start and end date, and can create broadcasts for those series. Broadcasts can be on one…

bartzon
- 46
- 1
0
votes
1 answer
Pandas: Period object to abstract from time
I have the following DataFrame:
df = pd.DataFrame({
'Trader': 'Carl Mark Carl Joe Mark Carl Max Max'.split(),
'Share': list('ABAABAAA'),
'Quantity': [5,2,5,10,1,5,2,1]
}, index=[
DT.datetime(2013,1,1,13,0),
DT.datetime(2013,1,1,13,5),
…

Andy
- 9,483
- 12
- 38
- 39
0
votes
1 answer
How to fill the textblock with periods(Silverlight 5)
I have a grid and three columns. Here goes the code:
…

Levon Alikhanov
- 103
- 4
- 13
0
votes
1 answer
generate statistics during pcap_loop every second
I am writing a PERL script, which captures packets, and then generate statistics in every second about all the TCP streams, which were online in that second.
I am using NET::Pcap, and I want somehow to implement this, and if it's possible without…

molnarg
- 445
- 4
- 8
0
votes
3 answers
Fit sinusoidal models
I have tried to fit following sinusoidal model by the following model, which means that deterministic model + white noise:
function [x]=generate(N,m,A3)
f1=100;
f2=200;
T=1/f1;
for t=0:N*T/m:N*T
WN(t)=rand(1,t)*2-1;
…
user466534
0
votes
2 answers
How can I represent large amount of time using joda-time
I'm trying to represent the value 3419779 (in seconds) in hours minutes and seconds however using Period of joda time returns -243h-06min-28, What can I use to represent this in the correct form that would be around 950 hours x min y sec?
I discover…

Sérgio Abreu
- 177
- 2
- 15
0
votes
1 answer
mysql query to find fixed sum over a period
I have a mysql table with following columns
order_id
customer_id
total_amount
date_added
Now, i would like to make a query for a particular customer to know if the customer has made more than or equal to 12000$ amount of order over six months period…

Dipen Ghale
- 3
- 2
0
votes
1 answer
Facebook Follow Button plugin doesn't allow periods in profile
Trying to set up a follow button with Facebook's plugin here:
https://developers.facebook.com/docs/reference/plugins/follow/
I've found that any profile url I enter that contains periods (for example, http://www.facebook.com/John.Smith) will return…

Jeremy
- 3
- 1
- 2
0
votes
1 answer
Oracle SQL Expression to Sum Payments for Six Months based on Selected Month
Basically what I'm trying to do is calculate the average percentage of CreditPayments and the average percentage of CashPayments over a projected period (Lookback 3 months then total all paymnents of the correct type in the previous six months)
So…
0
votes
2 answers
Select previous 3 months
I am looking to select tickets from the previous 3 months. By calculate the previous 3 months.
I saw this post:
https://stackoverflow.com/questions/7268896/calculate-3-month-period-using-mysql
But it does not seem to work.
Here is my query
select…

Greg
- 31
- 7
0
votes
3 answers
Mysql counting rows in a period of time
Lets say I have a user table which looks like
userID int(4) unsigned not null auto_increment,
name varchar(50) not null,
date_start int(10) unsigned not null,
date_stop int(10) unsigned not null
I want to count all users that were active (between…

b00st
- 3
- 3
0
votes
1 answer
.htaccess, get the value after a period and then redirect
I am trying to redirect a URL using a .htaccess file. The URL structure is like:
http://mydomain.com/folder/.anything_goes_here
Note the dot in the above Url. I want to remove it somehow using .htaccess.
I have tried using RewriteRule but it's not…

Zain Baloch
- 410
- 5
- 9
0
votes
6 answers
Alert dialog is gone before the user see anything
@Override
public void onBackPressed() {
// TODO Auto-generated method stub
PopIt("Exit Application", "Are you sure you want to exit?");
super.onBackPressed();
}
public void PopIt( String title, String…

Android Developer
- 1,039
- 1
- 9
- 33
0
votes
4 answers
Alert dialog period is to short
I have an alert dialog which is invoked when the user click back button on device but this alert is too short and the user cant read anything inside it or do any thing with it..
AlertDialog alertDialog = new…

Android Developer
- 1,039
- 1
- 9
- 33