Questions tagged [period]

A period of time is an interval, a span of time. You can also use it for questions related to the actual punctuation mark.

508 questions
0
votes
0 answers

PowerShell "Period" usage?

Could someone explain what the PS period is used for? I have found it being used in a few different ways. I didn't know if it was just situational or if I'm just understanding it wrong. $a = $a.Replace(" Scripting Guys", "") Here is just an example…
cloudnyn3
  • 769
  • 4
  • 10
  • 15
0
votes
4 answers

Aggregating Over Actual Year in SAS

Lets suppose we have the following table ("Purchases"): Date Units_Sold Brand Year 18/03/2010 5 A 2010 12/04/2010 2 A 2010 22/05/2010…
Noob_Strider
  • 183
  • 2
  • 2
  • 14
0
votes
1 answer

Fourier series of time domain data

I spent couple days trying to solve this problem, but no luck so I turn to you. I have file for a photometry of a star with time and amplitude data. I'm supposed to use this data to find period changes. I used Lomb-Scargle from pysca library, but I…
0
votes
0 answers

Teradata date difference

Hi i have used the following query for finding date difference ,but i am getting one hour difference between source and target, but when i checked manually for the dates in excel value is matching. select a.CASE_ID as…
user3514648
  • 101
  • 3
  • 15
0
votes
0 answers

Grails - Get next/previous TimeZone

I'm working with a Grails application and I can't find a clear way to translate a date from one TimeZone to the next/previous TimeZone available (I will define what I consider the next/previous Timezone below). The facts: I'm working with date…
Martín C
  • 1,027
  • 1
  • 9
  • 13
0
votes
3 answers

Check if time (startdate & enddate) cuts a time period

How can I check if a given startdate & enddate cuts a specific time period (train time). I did following: if ((startdate >= train.getStartDate()) && (enddate <= train.getEndDate())) { // doSomething(); } doSomething() get only executed, when…
Matej
  • 147
  • 2
  • 12
0
votes
1 answer

Calculate time period in multiple units in Swift

I want to calculate the diff between two dates (for example '11 oct 2015' and '23 dec 2015') in multiple units in Swift. For these dates the result i want to achieve should be something like '2 months, 11 days' In java using joda-time library i can…
HoneyBooBoo
  • 55
  • 1
  • 7
0
votes
0 answers

Php Split date in time intervals

I need to express a past date to now difference in a human readable format (e.g. 1day 2hours 1minute etc..). Here my try:
Giorgio
  • 330
  • 1
  • 3
  • 9
0
votes
2 answers

mac os x define a daemon working period by property list

Actually, I am quite new in Mac OS X launchd property list. I am planning to deploy a unix daemon program to serve my customers in only their office hours. For example 7:00 AM - 9:00PM. Is there any possible only use one property list ***.plist…
cidy.long
  • 417
  • 12
  • 35
0
votes
2 answers

Changing easing parameters

I have a tweening function to animate the camera angle using "Easing.Elastic.Out". How do I change the Period and Amplitude of the easing? camera.lookAt(scene); var controls = new THREE.OrbitControls(camera, renderer.domElement); function…
juxpin
  • 3
  • 3
0
votes
1 answer

How to implement pay rent system with Joda money and time

@Override public org.joda.money.Money computeCharge(org.joda.time.DateTime from, org.joda.time.DateTime to){ } Description copied from interface: Parkable Compute the cost of parking in this lot between these…
Grace Li
  • 9
  • 1
0
votes
0 answers

Overriding a sent cookie

How do browsers act when the HTTP response contains two Set-cookie headers, and only expires and Max-Age are different between the two (same name, value, domain and path etc..)? I need to extend session lifetime. The system calls setcookie with the…
doc_id
  • 1,363
  • 13
  • 41
0
votes
1 answer

JodaTime unable to normalize PeriodType

So I have 2 date pickers for a start and end time, which give back a DateTime. I need to calculate the duration between these two times in the format of "hours hr mins hr", so for example, "1 hr 30 mins". If there is a day difference, it will…
Ayohaych
  • 5,099
  • 7
  • 29
  • 51
0
votes
1 answer

Rails DELETE putting a period before :id

I'm making a simple calorie counter, using http://guides.rubyonrails.org/getting_started.html as a reference. I'm trying to add a Delete button, but every time I try to run it, I hit an error: No route matches [DELETE] "/calorieinput.1" I know the…
Skwigle
  • 11
  • 1
0
votes
1 answer

Daily schedule as an index in Pandas

I want to represent a daily schedule, given originally as a CSV file, as a Pandas DataFrame. The key to each row in the schedule is an hourly range in a day. The ranges are not overlapping. For example: 00:00, 01:00, some data 01:00, 03:00, some…
Little Bobby Tables
  • 5,261
  • 2
  • 39
  • 49