double doubleUnixTime = 1268974800;
string stringUnixTime;
time_t unixTime = doubleUnixTime ;
doubleUnixTime = asctime(gmtime(&unixTime));
Datetime String to unix time:
Datetime string in this format: yyyy-mm-dd hh:mm:ss
string stringDateTime = "2010-01-11 11:42:58";
struct tm *tmp = new tm;
time_t rawtime;
time ( &rawtime );
tmp = localtime ( &rawtime );
string year = stringDateTime.substr(0,4);
string month = stringDateTime.substr(5,2);
string day = stringDateTime.substr(8,2);
string hour = stringDateTime.substr(11,2);
string min = stringDateTime.substr(14,2);
string sec = stringDateTime.substr(17,2);
if(year != "0000")
tmp->tm_year = atoi(year.c_str()) - 1900;
else
tmp->tm_year = 0;
if(month != "00")
tmp->tm_mon = atoi(month.c_str()) - 1;
else
tmp->tm_mon = 0;
if(day != "00")
tmp->tm_mday = atoi(day.c_str());
else
tmp->tm_mday = 0;
tmp->tm_hour = atoi(hour.c_str());
tmp->tm_min = atoi(min.c_str());
tmp->tm_sec = atoi(sec.c_str());
rawtime = mktime(tmp);
int intRawtime = rawtime;
Wow! I am in essence astonished by the way you certain out almost every single little detail. It really is truly heading to aid me a fantastic offer. Thanks for sharing your thoughts so definitely.
ReplyDelete_________________
Total video downloader for Mac free
20161021 junda
ReplyDeletemichael kors outlet
oakley sunglasses
ugg sale
juicy couture outlet
longchamp pas cher
tory burch outlet
true religion jeans
rolex watches
swarovski crystal
uggs outlet
JIANBIN1228
ReplyDeletetory burch outlet
omega watches
moncler jackets
puma outlet
hermes outlet
tory burch outlet
rolex uk
lebron shoes
gucci handbags
cheap ray ban sunglasses
coach outlet clearance
ReplyDeletemichael kors outlet clearance
nike blazer pas cher
michael kors handbags
louis vuitton
ecco outlet
ralph lauren uk
coach outlet store online
fitflops
louis vuitton handbags
chanyuan2017.01.16
20170324 junda
ReplyDeleteprada handbags
sac louis vuitton pas cher
michael kors bags
cheap mlb jerseys
louis vuitton outlet clearance
oakley sunglasses wholesale
michael kors outlet
coach outlet
true religion jeans
cheap oakley sunglasses
Coding is always difficult for newbies
ReplyDeletehttp://www.cracksmalta.com/
coach factory outlet online
ReplyDeletechristian louboutin
christian louboutin
coach factory outlet
cheap oakley sunglasses
ray ban sunglasse
air jordan shoes
mlb jerseys wholesale
ralph lauren
nike outlet
yaoxuemei20180510
great.
ReplyDeletehttp://www.bicfic.online/
amazing.
ReplyDeleteiFreeGiveaways
Appyzone
ReplyDeleteYou can get free mac & pc applications. You are one click away from getting best cracks, cheats, and patches of games VMix Pro Cracked Incl Keygen With Full Version
golden goose
ReplyDeletegolden goose
golden goose sneakers
supreme clothing
supreme t shirt
golden goose
golden goose outlet
yeezy shoes
goyard handbags
yeezy supply
goyard
ReplyDeletebalenciaga
golden goose
goyard
goyard
golden goose
goyard
goyard handbags
yeezy
yeezy