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
1
vote
1 answer
Attempt at finding period in string with strpos not working
I'm trying to find if there's a period in a string with strpos, but for some reason it prints out "There's no period." every time I run the code. I'm not sure what I did wrong.
$text = "Hello.";
if (strpos($text, "." !== false)) {
echo "There's a…

jessica
- 1,667
- 1
- 17
- 35
1
vote
1 answer
R - Sorting by date periods (like 5y, 10d )
Is there a way to sort data by date periods. For eg
myCurve <- data.table( Term=c('10y', '3y', '5y'), value = c(2, 1.25, 1.9))
I would like to get the data sorted by Term so that the results are like so
Term Value
3y 1.25
5y 1.90
10y …

Balaji Subramanian
- 23
- 3
1
vote
1 answer
How to transpose data in .xls with a few static columns
I need to perform a transpose with a few static columns (Fruit, Category) which can vary. Also the Period can go up to 15 years. I have tried the Transpose feature, but this can transpose an individual ROW or COLUMN whereas I want to achieve the…

Kfactor21
- 412
- 5
- 14
1
vote
1 answer
PHP calendar periods (weekly)
I doing calendar and I'm now stacked on week period of event. I can't do that, it works, but only for next month and others months not.
$i = 1;
$den = $post->day;
$mesic = $array['month'];
$rok =…

koca79331
- 321
- 4
- 19
1
vote
0 answers
How to send a notification to android wear every minute
I tried making an app that sends a custom notification to android wear, that part worked but then I wanted to implement a service so that the app will send the notification every minute. But I am missing something,can you guys help me please? Thanks…

Alex Acea
- 11
- 2
1
vote
1 answer
Why is Unicode stored with periods in-between characters?
So, right now I'm making a small package reader in Java.
All the unicode strings have periods (or at least that's how they are presented in hex editor) so when I read them I need to go to the offset and read the allocated memory for that…

user3530525
- 691
- 3
- 8
- 20
1
vote
2 answers
MDX - How to exclude a period in time relative calculation
I am trying to exclude the period P13 (special period at the end of the fiscal year) for some time relative calculations, like a Sum using ParallelPeriod over 12 Months, or an average using Lag().
Here is a MDX so far:
WITH MEMBER [Measures].[Sum…

Amael
- 11
- 1
1
vote
1 answer
Obtain period by subtract start datetime and end datetime with workday
I am trying to implement a method in VB.NET that could subtract a start datetime and datetime, and result this specific string period "D.HH:mm:ss", observing that the day doesn't have 24 hours, but only 8 hours.
My function to do the subtract return…

Alisson Santos
- 95
- 1
- 6
1
vote
1 answer
Sending data periodically from client to server in C
I am creating a multithreaded socket program that needs to send 2 sets of data to the server periodically. The client needs to send GPS information every 3 seconds and polarity information every 4 seconds. My idea on implementing this was to simply…

marcusc
- 21
- 4
1
vote
1 answer
Calculating highest high price during specific period using quantmod in R
I am trying to calculate the highest high price and lowest low price during the last 144 days for one stock.
I have been thinking for a while and finally I came up with the following two
means, but these are still not exactly what I want.
This is…

baikafei
- 35
- 1
- 4
1
vote
1 answer
How to calculate sum from 2 period with negative sign on Joda Time
I'm building an android app and I would do a sum of two periods, using jodatime library.
Actually, I've a problem to manage the sign because I could have only one period with negative sign.
I tried a code to do this, but the result is wrong for me.…

user3449772
- 749
- 1
- 14
- 27
1
vote
1 answer
How to change android timer period?
I am writing simple game, where some action must accelerating during the process. The question is how to change timer's period?
timer = new Timer();
timerTask = new TimerTask() {
@Override
public void run() {
…

Red Hot Chili Coder
- 1,218
- 1
- 10
- 19
1
vote
1 answer
How calculate negative period using JodaTime
I'm building an Android app and I need to calculate a sum of a period (hours and minutes). Pratically, I build a method that make this, but I've a problem with negative period.
In example:
First case --> is correct
Input 1: 3:00
Input 2:…

user3449772
- 749
- 1
- 14
- 27
1
vote
1 answer
Change a value after 1 year
Hi I making a petition site. In my site i Have three types of petitions, every have self period. When period is passed it need to change petition status(integer value) automaticaly.
How to do this better? And wich time rails use on server, from my…

TheVic
- 303
- 6
- 16
1
vote
1 answer
Joda-Time – Remove one Period from another
I am trying to remove a Period of time from another Period of time in Joda-Time, but it does not work.
Period p = new Period(new LocalDate("2014-01-01"), new LocalDate("2014-02-20"),PeriodType.days())
From this remove another Period:
Period minusD…

user1601401
- 732
- 1
- 12
- 25