Bug 5635 - Date To Unix Timestamp native request
Date To Unix Timestamp native request
Status: UNCONFIRMED
Product: SourceMod
Classification: Unclassified
Component: Core
master
All All
: P5 enhancement
Assigned To: SourceMod Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-27 05:52 PST by chapaev-baha
Modified: 2013-02-28 08:42 PST (History)
4 users (show)

See Also:


Attachments

Description chapaev-baha 2013-02-27 05:52:49 PST
It's very useful function to convert date to unix timestamp.
native like DateToTime(day, month, year, hour, minutes, seconds)
Comment 1 Erin Baker [:asherkin] 2013-02-27 06:09:41 PST
Can you expand on your use case a bit, I can't think of any case this would be useful that doesn't involve getting data to/from a database (where it's handled natively).
Comment 2 chapaev-baha 2013-02-27 06:52:56 PST
i'm using date format dd-mm-yyyy in the KeyValues file for the vip plugin. It's easy to set date like dd-mm-yyyy rather than getting timestamp from some site and set it
Comment 3 Powerlord 2013-02-28 08:42:35 PST
Parsing logfiles for one.

I'd hate to have to write an extension just to wrap a strptime call, assuming that Windows actually supports strptime.

Note You need to log in before you can comment on or make changes to this bug.