Tag Archives: TimeStamp
Excel stores a date internally as a number of days since January 1, 1900.For example: "June 9th, 2011 10:30 AM" would be stored as "40703.4375".40703 is the number of full days since 01/01/1900 and 0.4375 represents the time (10.5/24 = 0.4375). When you process dates read from an Excel spreadsheet (e.g. using PHPExcel) you often want to convert them into a UNIX timestamp i.e. a number of seconds elapsed since midnight of January 1, 1970 UTC. Here is a PHP code to do that: Although the code above is written in PHP the function should be very similar in any other language e.g. C# or java. If the provided date is earlier than 1/1/1970 then the minimal timestamp value will be returned. Alternative…
Calendar
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
Recent Research
Recent Posts
Categories
- C++ (3)
- Java (18)
- JavaScript (1)
- Machine Learning (8)
- Network (4)
- Others (29)
- PHP (11)
- Python (5)
Tags
AdaBoost
Angular
Apereo
Arch Linux
Bagging
Boosting
C++
CART
CDN
Crack
Decision Tree
Dimensionality Reduction
Electron
Email Template
GBDT
Git
GitHub
GNOME
GPG
Hadoop
include
IPv6
Keyboard
Machine Learning
Microsoft Remote Desktop
NAT
OpenWRT
PHP
Random Forest
Random Projection
Raspberry
Raspbian
RDP
require
Spring MVC
Squid
Tencent
Timezone
tmpfs
TypeScript
Ubuntu
UEFI
Unit Testing
WordPress
Zend Framework