Questions tagged [datestamp]

86 questions
2
votes
1 answer

Plotting time-series in Matlab with "label grouping"

In Matlab, I have data in the following form: "z", a 17'256x1 double, containing the residuals of a regression, e.g. -0.0596 "dates", a 17'256x1 cell, containing date- and timestamps of each observation in the regression (and therefore, of the…
lodhb
  • 929
  • 2
  • 12
  • 29
1
vote
1 answer

Mac: Saving information to file without modifying date stamp

The Mac OS X Human Interface Guidelines says in their section about windows: Note that if a user opens, moves, and closes a document window without making any other changes, you should save the new window position but you should not modify the…
jschoi
  • 1,884
  • 1
  • 12
  • 26
1
vote
0 answers

How to place output from the Notepad++ Run command to the current file's cursor position?

I have a simple one line run script in Notepad++ that sends the output of a Powershell script to the clipboard. I'm trying to send the output directly to the current cursor position in the current file. Yes, just to save a keyboard stroke... I'm…
Glenn Wark
  • 1,499
  • 4
  • 19
  • 23
1
vote
2 answers

Using DISTINCT ON for a column of type timestamp to extract the most recent value for each day

I have a table named assets: create table assets ( id bigint primary key, name varchar(255) not null, value double precision not…
MehdiB
  • 870
  • 12
  • 34
1
vote
1 answer

Ruby Converting Datestamp to Years old in Ruby

Possible Duplicate: How to calculate how many years passed since a given date in Ruby? I am trying to convert a datestamp taken from the database into value indicating how many years old a person is. I am sure this easy, but I can't seem to…
Spencer
  • 21,348
  • 34
  • 85
  • 121
1
vote
2 answers

Getting the last modification date of a file in Inno Setup Pascal Script

I need to choose the most recently modified file in my installation script. It seems the Pascal scripting language has no GetFileDateTime or similar, so I am resorting to: function FileDateTime (FileID : string) : double ; var FindRec :…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
1
vote
1 answer

How can I use PHP to include the most recent file in a directory?

I have a directory which will look something like this: /test/ | |- index.php |- test-20110324 |- test-20090901 |- test-20070901 What I want to do is use "index.php" to find the most up-to-date file, and require it into the "index.php"…
Jordan Clark
  • 750
  • 5
  • 18
1
vote
2 answers

date stamp pdf on download

I have a PDF which users can download. However, I need to have the date it was downloaded in the text on the PDF. Is there a way to insert a "date now" stamp on a PDF so it is dynamically added on opening? Perhaps you can add javascript to a PDF?
Tom
  • 12,776
  • 48
  • 145
  • 240
1
vote
2 answers

How to add current time to label in table view cell swift 3

I have a add button that takes you to a new view with text inputs to add info. once you hit add button it takes you back to the tableview and adds all inputs to the labels. I am having trouble making the current time pull into the dateStamp label I…
Blue Moose
  • 125
  • 1
  • 15
1
vote
2 answers

How do I add a tab using vba in excel that has both a name i specify and a date stamp

I see how to add a tab for a macro with a date stamp but I have not been able to figure out how to also add a label to it as well. As an example I would like to be able to create a tab that says Dec-2016 Journal or Dec-2016 Log
H Jennings
  • 11
  • 2
1
vote
1 answer

SQL Query to Group "Blocks" of Date/Time Activity?

I have data in a table that is log data for server activity. Here's what it looks like (the # column isn't part of the database or output, but there to be able to refer to that data in my Notes below): # | DateStamp | Server - |…
D LeG8
  • 11
  • 1
1
vote
2 answers

Python - Read and plot only the latest files

I have multiple csv files (each file generated per day) with generic filename (say file_) and I append date-stamps to them. For example: file_2015_10_19, file_2015_10_18and so on. Now, I only want to read the 5 latest files and create a comparison…
Mac Pan
  • 11
  • 1
1
vote
1 answer

python module to decode OSX plist integer dates?

Is there a python module/snippet which can decode the integer datestamps contained in OSX - specifically mail - plists? EG, this bit: date-sent 1264001747 is likely in Jan 2010. How to deconstruct? I'm aware of…
DrLou
  • 649
  • 5
  • 21
1
vote
1 answer

combing two rows of data in Sql

So my data looks like this: +-----------+---------+-------------+-------+-------------+--+ | time | Outlets | Meal_Period | cover | day_of_week | | +-----------+---------+-------------+-------+-------------+--+ | 10/1/2013 | 72 | …
user3666237
  • 153
  • 1
  • 6
  • 18
1
vote
0 answers

as.Date not working as expected

This works as expected: > as.Date("07/01/08","%m/%d/%y") [1] "2008-07-01" But not this: > as.Date("07/08","%m/%y") [1] NA Bonus question, explain this: > as.Date("08","%y") [1] "2008-09-08" UPDATE OK, so I guess I can get something reasonable…
stackoverflax
  • 1,077
  • 3
  • 11
  • 25