Jump to content



Photo

[FREE PLUGIN] DATETIME Manipulation

free plugin date time datetime manipulation format conversion

  • Please log in to reply
27 replies to this topic

#1 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 22 April 2013 - 03:29 AM

Hey Everyone,

 

I've got a new plugin for you, which will let you manipulate any kind of dates and/or times (even conversion from and to different culture/language).

 

Plugin will add a new function called "$datetime manipulation", and you'll find it under system functions.

 

 

For more information and download please visit http://ubotdev.com/f...me-manipualtion

 

 

Screenshot:

 

DATETIME-Manipulation.png

 

Examples of Usage - UBot Code Snippets:

 

Update v1.01:

Added a new function called "$datetime time span" that will convert an integer to time span string.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#2 LoWrIdErTJ - BotGuru

LoWrIdErTJ - BotGuru

    Botguru.net

  • Moderators
  • 4507 posts
  • LocationMichigan
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 22 April 2013 - 05:12 AM

nice plugin bud..



#3 beatngu

beatngu

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 295 posts
  • Location3021e68df9a7200135725c6331369a22
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 22 April 2013 - 08:56 AM

Thanks for the free plugins,mate.


KARMA is a B*ICH  :P


#4 Kreatus (Ubot Ninja)

Kreatus (Ubot Ninja)

    Custombotsolutions.com

  • Fellow UBotter
  • PipPipPip
  • 3067 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 22 April 2013 - 09:02 AM

Thanks for making this free to the ubot community and also for the detailed explanation of this plugin. :)



#5 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 22 April 2013 - 10:32 PM

Thanks guys for the support!

 

No problem for the free plugins, they are actually quite simple.

 

Yeah, I spent quite a while on researching the topic and preparing that page (actually more than on development), so hopefully you'll find it useful :)


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#6 VaultBoss

VaultBoss

    I have no fear, for fear is the little death that kills me

  • Fellow UBotter
  • PipPipPip
  • 891 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 June 2013 - 06:53 AM

Help me with this little bit here, mate...

If I'm scraping dates in the following format:

30 MAY 2013
5 APR 2013
1 SEP 2012

 

etc...

 

How do I setup the plugin's function options properly, to transform that into a UBS type of date?
I keep getting errors, that the string input is not a recognized date, or some such wording...

Thanks in advance!
 


If you liked my post/contribution, hit the LIKE THIS button ↑↑↑ above...
GET CaptchaSniper with a 20% off discount below:
8903615856_1a01c0e40c_z.jpg

Also GET my "Sexy eMail Marketing" Book ($27 real value) as a free bonus when you buy from my link ↑↑↑ above...


#7 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 June 2013 - 08:00 AM

Here is the code:

set(#DATE, $plugin function("DateTime Manipulation.dll", "$datetime manipulation", "30 MAY 2013", "d MMM yyyy", "UBOT", "en-US", "en-US"), "Global")

Since input does not provide information about time, hour,min. and sec. will be set to 0.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#8 VaultBoss

VaultBoss

    I have no fear, for fear is the little death that kills me

  • Fellow UBotter
  • PipPipPip
  • 891 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 June 2013 - 08:57 AM

Thanks, mate... so you basically tell me I can just alter the preset filters from the Node View by editing the command in Code View and pasting there my format?


If you liked my post/contribution, hit the LIKE THIS button ↑↑↑ above...
GET CaptchaSniper with a 20% off discount below:
8903615856_1a01c0e40c_z.jpg

Also GET my "Sexy eMail Marketing" Book ($27 real value) as a free bonus when you buy from my link ↑↑↑ above...


#9 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 June 2013 - 09:21 AM

You can actually edit "Input Format" from Node View directllyl, just clear the content that is pre-filled and enter your own string.

 

When building "Input Format", you can refer to format specifiers here: http://ubotdev.com/f...rmat-specifiers

 

Also, here is an example of custom formatting: http://ubotdev.com/f...ustom-date-time


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#10 VaultBoss

VaultBoss

    I have no fear, for fear is the little death that kills me

  • Fellow UBotter
  • PipPipPip
  • 891 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 June 2013 - 10:09 AM

Worked perfectly, thank you!

I only had to change the format from

dd MMM YYYY

to
d MMM YYYY

to accommodate days numbered from 1 to 31.


If you liked my post/contribution, hit the LIKE THIS button ↑↑↑ above...
GET CaptchaSniper with a 20% off discount below:
8903615856_1a01c0e40c_z.jpg

Also GET my "Sexy eMail Marketing" Book ($27 real value) as a free bonus when you buy from my link ↑↑↑ above...


#11 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 June 2013 - 02:10 PM

Sorry, you are right!

 

Will fix that in the post above.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#12 mojpoj

mojpoj

    Member

  • Fellow UBotter
  • PipPip
  • 28 posts
  • LocationFlorida
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 12 May 2014 - 06:17 PM

Thanks for the plugin, it's awesome, almost does what I need.  Trying to get the time in nanoseconds to create a nonce.

 

The API I'm connecting to, requires nonce's that are sequential.  My bot will be running several queries a second, so using the UNIX option isn't good enough for my application.

 

If you plan on updating this plugin, perhaps a way to get UNIX time returned in nanoseconds would be a request you could consider.

 

The Ubot Date variable doesn't offer nanoseconds, so not sure how you could pull that in from the system time (which does provide nanoseconds).

 

Thanks again, I'm sure I'll find it useful in other projects!



#13 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 13 May 2014 - 12:40 AM

Thanks for the plugin, it's awesome, almost does what I need.  Trying to get the time in nanoseconds to create a nonce.

 

The API I'm connecting to, requires nonce's that are sequential.  My bot will be running several queries a second, so using the UNIX option isn't good enough for my application.

 

If you plan on updating this plugin, perhaps a way to get UNIX time returned in nanoseconds would be a request you could consider.

 

The Ubot Date variable doesn't offer nanoseconds, so not sure how you could pull that in from the system time (which does provide nanoseconds).

 

Thanks again, I'm sure I'll find it useful in other projects!

UNIX timestamp is defined in seconds, so if you want nanoseconds that's not a UNIX timestamp anymore.

 

I'm preparing a small update in the near feature, maybe I'll also look into more accurate counters.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#14 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 15 September 2014 - 11:49 PM

I've released version 1.1 today, which includes a new function called "$datetime time span", which will convert an integer to a time span; more info here: http://ubotdev.com/f...ion#update-v101


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#15 Kreatus (Ubot Ninja)

Kreatus (Ubot Ninja)

    Custombotsolutions.com

  • Fellow UBotter
  • PipPipPip
  • 3067 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 16 September 2014 - 12:13 AM

Thanks for the update!

 

Do you think this is possible http://screencast.com/t/dxYUIty2tRm for ubot UI monitor?

Check how the numbers increment. It looks like it's incrementing by miliseconds.



#16 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 16 September 2014 - 12:20 AM

Thanks for the update!

 

Do you think this is possible http://screencast.com/t/dxYUIty2tRm for ubot UI monitor?

Check how the numbers increment. It looks like it's incrementing by miliseconds.

Hm...not sure what you mean... It confuses me because I see "Records Collected" number in the video, which I can't relate to time. Isn't that just a counter?

 

This new function is mostly meant to be used with UNIX timestamps...for example when you subtract one from another you get a time difference in seconds, which you can then convert with this new function to a more human-readable format - "time span".


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#17 Kreatus (Ubot Ninja)

Kreatus (Ubot Ninja)

    Custombotsolutions.com

  • Fellow UBotter
  • PipPipPip
  • 3067 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 16 September 2014 - 12:33 AM

Hm...not sure what you mean... It confuses me because I see "Records Collected" number in the video, which I can't relate to time. Isn't that just a counter?

 

This new function is mostly meant to be used with UNIX timestamps...for example when you subtract one from another you get a time difference in seconds, which you can then convert with this new function to a more human-readable format - "time span".

 

Hi,

 

Sorry for the confusion. I forgot that this plugin thread is dedicated for time management..

Anyway, do you think it is possible for ubot stat counter to behave the same? That we visually see it increment by milliseconds?



#18 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 16 September 2014 - 01:21 AM

I don't think that's doable....1ms corresponds to a frequency of 1kHz, but your monitor is only able to refresh at rate of around 50-60Hz...as you can see the frequency of your monitor is much lower than what you are trying to display, so you actually wouldn't saw all the changes if you update at that rate. From the frequency of your monitor you can calculate what the max rate is; for 60Hz it's for example 16,67ms (this is the min. increment that you would be able to spot). You should also keep in mind that your eye only catches changes which happen around 25Hz.

 

Else I was already adding a stopwatch to this plugin (which supports miliseconds), but since Kev123 released that as a standalone plugin I've removed that feature for now. However, you should also know that that stopwatch is running in the background all the time, so it will be more CPU consuming (although I don't think the difference is huge)...

 

Hope this helps.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#19 Kreatus (Ubot Ninja)

Kreatus (Ubot Ninja)

    Custombotsolutions.com

  • Fellow UBotter
  • PipPipPip
  • 3067 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 16 September 2014 - 01:37 AM

I don't think that's doable....1ms corresponds to a frequency of 1kHz, but your monitor is only able to refresh at rate of around 50-60Hz...as you can see the frequency of your monitor is much lower than what you are trying to display, so you actually wouldn't saw all the changes if you update at that rate. From the frequency of your monitor you can calculate what the max rate is; for 60Hz it's for example 16,67ms (this is the min. increment that you would be able to spot). You should also keep in mind that your eye only catches changes which happen around 25Hz.

 

Else I was already adding a stopwatch to this plugin (which supports miliseconds), but since Kev123 released that as a standalone plugin I've removed that feature for now. However, you should also know that that stopwatch is running in the background all the time, so it will be more CPU consuming (although I don't think the difference is huge)...

 

Hope this helps.

 

Alright, thanks for the detailed response.

Not a big deal. I just want to make a cool effect like on the video. :)



#20 Pete_UK

Pete_UK

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts
  • LocationUK
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 21 September 2014 - 06:10 AM

Is it possible to add in the option to get the date and time in ISO 8601 formats? http://www.w3.org/TR/NOTE-datetime

 

 

What I am needing is complete date plus hours, minutes, seconds, decimal fraction of a second and time zone offset of "+hh:mm"
YYYY-MM-DDThh:mm:ss.sTZD
(eg)
 
  • 2014-08-05T13:46:02.06+01:00
  • 2014-09-15T19:22:33.45-06:00

Edited by Pete_UK, 21 September 2014 - 06:11 AM.






Also tagged with one or more of these keywords: free, plugin, date, time, datetime, manipulation, format, conversion

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users