INC1.net

INC1.net

Developer blog

Converting a date to ISO format from PostgreSQL timestamp with time zone in React Native.

October 30, 2024October 30, 2024 AlexanderReact Native

The toISOFormat function in React Native with TypeScript converts a date in the format 2024-10-25 14:51:27.056551+03 to ISO format (e.g., 2024-10-25T14:51:27+03:00). It takes a date string, extracts the components using a regular expression, and throws an error if the format…

Read More→

Get the number of years with correct declension from the current moment in TypeScript on React Native.

October 30, 2024October 30, 2024 AlexanderReact Native

The getAgeString function takes an age as a number and returns a string with the correct grammatical form of the age in Russian. How does it work? Usage example This function is convenient for displaying age in user interfaces of…

Read More→

Number of hits to the WordPress database

March 22, 2019April 9, 2019 AlexanderMariaDB, MySQL, PHP, WordPress

To know the number of accesses to the database by your site on WordPress, you need to file the theme footer. php before the tag add the following code. <!–?php echo get_num_queries(); ?–> queries in <!–?php timer_stop(1); ?–> You will…

Read More→

PHP page generation speed

March 13, 2019March 18, 2019 AlexanderPHP

To measure the speed of page generation in PHP, insert the following code at the beginning of the script: // Breathing start time of page generation $start_array = explode(” “,microtime());$start_time = $start_array[1] + $start_array[0]; And at the end of the…

Read More→

Install Nginx, PHP, MySQL (Mariadb) on Ubuntu

March 6, 2019March 18, 2019 AlexanderMariaDB, MySQL, NGINX, PHP, ubuntu, WordPress

-Would you be kind to me in which direction to go? -In the famous you, – replied the cat. -I don’t know it. -So, in the unknown. In any case, it is known that in a known time you will…

Read More→

How to configure SSH without a password with a key pair in Ubuntu

February 27, 2019March 19, 2019 Alexanderubuntu

Create a key pair, leave all values by default: ssh-keygen In the console, enter a command that configures the server so that you can sign in with an SSH key: ssh-copy-id -i .ssh/id_rsa.pub root@127.0.0.1 Instead of127.0.0.1, specify the IP server.…

Read More→

Posts navigation

1 2 3 Next
  • Русский

Recent Posts

  • Converting a date to ISO format from PostgreSQL timestamp with time zone in React Native.
  • Get the number of years with correct declension from the current moment in TypeScript on React Native.
  • Number of hits to the WordPress database
  • PHP page generation speed
  • Install Nginx, PHP, MySQL (Mariadb) on Ubuntu

Archives

  • October 2024
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018

Categories

  • AJAX
  • Bot
  • Domains
  • Java
  • JavaScript
  • jQuery
  • JSON
  • MariaDB
  • MySQL
  • NGINX
  • PERL
  • pgAdmin
  • PHP
  • React Native
  • ubuntu
  • WebDriver
  • WordPress

RSS Entries RSS

  • Преобразование даты в ISO из PostgreSql timestampwtz React Native
Copyright © All rights reserved.
Blog Kit by WP Charms