HTTP CLIENT n Date and Time - MODULE

Support
  • bcb51f37-c6e3-4cac-aa12-cc0006794de3-image.png

    The "Http-Client" module is used to work with requests to the web server and site, bypassing its visual component. That is, the work is carried out entirely without a browser. The module is popular with professional developers who have a good understanding of the server side of sites and know how to interact with it. The module contains the following actions: HTTP client proxy, client reset, Get request, Post request, Download, Current URL, response content, response status, get header, set header, clear headers save and load cookies, load cookies from browser, exit after error, did it occur, get error text, Xpath get XML, each XML, get text, get each text, get number of elements, check for existence. You won't need HTTP requests initially, since almost all tasks are performed through the browser, but it will take a little longer.

    592bc6e5-b305-4ff3-a84e-30bcf8bfee76-image.png

    The "Date and Time" module allows you to flexibly work with dates and times. BAS uses its own date and time representation. The number of milliseconds in the conversion is counted from January 1, 1970, 00:00:00 UTC. The starting point is midnight (UTC) from December 31, 1969 to January 1, 1970, the time from that moment is called the "UNIX era" (Eng. Unix Epoch). UNIX time is a time encoding method adopted by operating systems.

    UNIX time is consistent with UTC. The method of storing time as a number of seconds is very convenient to use when comparing dates (up to a second), as well as for storing dates: if necessary, they can be converted to any conveniently readable format. Date and time in this format also take up very little space (4 or 8 bytes, depending on the size of the machine word), so it is reasonable to use it for storing large amounts of dates. In most cases, it's more efficient to store time as a single value rather than as a set of fields.

    The "Date and Time" module is rich in its actions: string to date and back, milliseconds to date and back, create date, change date, add seconds to date, difference between dates, date now, change and get time zone, day of month, week , years, get the year, month, hours, minutes, seconds and milliseconds from a date. If you plan to call a script at a specific time, then this module is perfect for you. Or you can use the built-in task scheduler.

    More information in telegram chat @bas_english